Commit 130ae8dc authored by Spencer Sherwin's avatar Spencer Sherwin

Updated to not use fs:copy but instead fs:copy_directory and fs:copy_file

parent b0bf7d48
......@@ -230,14 +230,14 @@ int main(int argc, char *argv[])
if (fs::is_directory(source))
fs::copy(source, dest);
fs::copy_directory(source, dest);
// If source is a directory, then only directory name is
// created, so call copy again to copy files.
for (const auto& dirEnt :
fs::path newdest = dest / dirEnt.path().filename();
fs::copy(dirEnt.path(), newdest);
fs::copy_file(dirEnt.path(), newdest);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment