copy problem using std::filesystem::copy()

I'm trying to copy files and interior directory's using std::filesystem::copy(),
But unfortunately he copy's only the files which inside the fromString path directory and not the directory's there,
What's wrong here?

 
std::filesystem::copy(fromString,toString);


Do I need to create those folders manually and copy what's inside manually?
Last edited on
You need to specify applicable options for the copy(). See https://en.cppreference.com/w/cpp/filesystem/copy_options
 
 std::filesystem::copy(fromString, toString,std::filesystem::copy_options::recursive);


this worked, thanks.
Topic archived. No new replies allowed.