Browse Source

- added temporary directory creation/delete

master
Andreas Romeyke 2 years ago
parent
commit
6f1cb97f01
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      test/test_fetchfile.cpp

+ 5
- 0
test/test_fetchfile.cpp View File

@@ -4,6 +4,8 @@
#include <string>
#include <list>
#include <utility>
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;

#include "fetchfile.hpp"

@@ -25,7 +27,10 @@ bool check_validation(string dir) {

bool check_store( string dir_load_from, string dir_store_to ) {
Fetchfile p( std::move(dir_load_from) );
fs::path f{ dir_store_to };
fs::create_directory(f);
bool result = p.store( std::move(dir_store_to) );
fs::remove_all( f );
return result;
}



Loading…
Cancel
Save