Copy file or folder
copyfile
copies the file or folder
source
source
to the current folder. After a successful
copyfile
operation, the timestamp for the new file is the
same as the timestamp for source
.
copyfile
copies source
destination
source
to the file or folder
destination
.
If source
is a file, then
destination
can be a file or a folder.
If source
is a folder, then
destination
must be a folder.
If source
is a folder or specifies multiple
files and destination
does not exist, then
copyfile
attempts to create
destination
.
copyfile
copies source
destination
fsource
to destination
,
even when destination
is not writable. The state
of the read/write attribute for destination
does
not change.
copies the
specified file or folder and returns a status of status
= copyfile(___)1
if the
operation is successful. Otherwise, copyfile
returns
0
. You can use this syntax with any of the input argument
combinations in the previous syntaxes.