I have this code:
#include <filesystem>
#include <fstream>
using namespace std::filesystem;
int main() {
std::error_code ec;
bool hi = copy_file("hi.txt" , "sth.txt",ec);
std::cout << ec;
return 0;
}
When I compile and run this, it throws system:80
, which according to
bool hi = copy_file("hi.txt", "sth.txt", copy_options::skip_existing, ec);
bool hi = copy_file("hi.txt", "sth.txt", copy_options::overwrite_existing, ec);
bool hi = copy_file("hi.txt", "sth.txt", copy_options::update_existing, ec);