Directory hierarchy manipulation
Factor handbook » Input and output » Directory manipulation

Prev:Deleting, moving, and copying files
Next:Searching directories


There is a naming scheme used by io.directories. Operations for deleting and copying files come in two forms:
Words named operation-file which work on regular files only.
Words named operation-tree works on directory trees recursively, and also accepts regular files.

Deleting directory trees recursively:
delete-tree ( path -- )


Copying directory trees recursively:
copy-tree ( from to -- )

copy-tree-into ( from to -- )

copy-trees-into ( files to -- )