updating oE copy_file
copy_file
include filesys.e namespace filesys public function copy_file(sequence src, sequence dest, integer overwrite = 0)
copies a file.
Parameters:
- src : a sequence, the name of the file or directory to copy
- dest : a sequence, the new name or location of the file
- overwrite : an integer; 0 (the default) will prevent an existing destination file from being overwritten. Non-zero will overwrite the destination file.
Returns:
An integer, 0 on failure, 1 on success.
Comments:
If overwrite is true, and if dest file already exists, the function overwrites the existing file and succeeds.
See Also:
Not Categorized, Please Help
|