NAME
CopyEverythingInDirectory — Copy all the files in the source directory to destination.
SYNOPSIS
CopyEverythingInDirectory SourceDirectoryPath DestinationDirectoryPath
DESCRIPTION
Return Value
None.
Arguments
SourceDirectoryPathPath of directory to copy files from.
DestinationDirectoryPathPath of directory to copy files to.
More Info
You can think of this like doing a copy-and-paste in the file explorer for your OS, and when the dialog comes up and asks about what to do for conflicts, it is as if you say to do an overwrite for them all.

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.


For information regarding exceptions / errors, see here.
EXAMPLES
% 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
SEE ALSO
DeleteEverythingInDirectory, file, glob
KEYWORDS
directory, file