copy-file ( from to -- )
Factor handbook > Input and output > Directory manipulation > Deleting, moving, and copying files

Prev:move-files-into ( files to -- )
Next:copy-file-into ( from to -- )


Vocabulary
io.directories

Inputs and outputs
froma pathname string
toa pathname string


Word description
Copies a file.

Notes
This operation attempts to preserve the original file's attributes, however not all attributes may be preserved.

Errors
Throws an error if the file does not exist or if the copy operation fails.

Definition


Methods