SourceDirectoryPath | Path of directory to copy files from. |
DestinationDirectoryPath | Path of directory to copy files to. |
Note that this will create the directory if it does not already exist. In a future release, we may add an option to throw an error if the destination directory does not already exist.
This command will also copy subdirectories and their contents.
This command will overwrite any files in the destination that have the same name as a file or directory in the source. It will also do this for subdirectories.
This command will leave in-place any existing files and subdirectories in the destination. Again, if files have the same name as a file in the source, then the source file will overwrite.
% mkdir dir1
% cd dir1
% String2File asdf file1.txt
% String2File hjkl file2.txt
% cd ..
% CopyEverythingInDirectory dir1 dir2
% glob -directory dir2 *
dir2/file1.txt dir2/file2.txt