Commit e6b258c9 authored by Spencer Sherwin's avatar Spencer Sherwin

Modified copy call since having trouble on mac osx

parent e6503af0
......@@ -228,12 +228,11 @@ int main(int argc, char *argv[])
cerr << " - " << source << " -> " << dest << endl;
}
fs::copy(source, dest);
// If source is a directory, then only directory name is
// created, so call copy again to copy files.
if (fs::is_directory(source))
{
fs::copy(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::recursive_directory_iterator{source})
{
......@@ -241,6 +240,10 @@ int main(int argc, char *argv[])
fs::copy(dirEnt.path(), newdest);
}
}
else
{
fs::copy_file(source, dest);
}
}
// If we're Python, copy script too.
......
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