Rose::FileSystem::copyFiles
Copy files from one directory to another.
Synopsis
Description
Each of the specified files are copied from their location under root to a similar location under destinationDirectory. Subdirectories of the destination directory are created as necessary.
Any file whose name is outside the root directory will similarly be created outside the destinationDirectory. For instance, copyFiles(["bar/baz"], "foo", "frob") will copy "bar/baz" to "frob/../bar/baz" since "bar" is apparently a sibling of "foo", and therefore must be a sibling of "frob".
Throws a std::filesystem::filesystem_error on failure.
Parameters
Name |
Description |
files |
Files to copy, relative to |
root |
Root directory for source paths. |
destinationDirectory |
Destination root directory. |
Created with MrDocs