copy-tree ( from to -- )
Factor handbook » Input and output » Directory manipulation » Directory hierarchy manipulation

Prev:delete-tree ( path -- )
Next:copy-tree-into ( from to -- )


Vocabulary
io.directories

Inputs
froma pathname string
toa pathname string


Outputs
None

Word description
Copies a directory tree recursively.

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

Errors
Throws an error if the copy operation fails.

Definition