copy-file - (files)
Contents
Description
File <source file> is copied into <target file>, which is created if it does not exist.
Status can be obtained in <status> variable, which is GG_ERR_OPEN if cannot open source file,
GG_ERR_CREATE if cannot create target file, GG_ERR_READ if cannot read source file, GG_ERR_WRITE if
cannot write target file, or number of bytes copied (including 0) on success.
Examples
copy-file "/home/user/source_file" to "/home/user/target_file" status st
Name
copy-file - (files)
Purpose
Copies one file to another.
See Also
Files
change-modeclose-filecopy-filedelete-filefile-positionfile-storagefile-uploadinglock-fileopen-fileread-fileread-linerename-filestat-filetemporary-fileuniq-fileunlock-filewrite-file See all
documentation
$DATE $VERSION GOLF(2gg)
Syntax
copy-file <source file> to <target file> [ status <status> ]
