move-file-into ( from to -- ) (original) (raw)
move-file-into ( from to -- )
Factor handbook » Input and output » Directory manipulation » Deleting, moving, and copying files
Prev: | move-file ( from to -- ) |
---|---|
Next: | move-files-into ( files to -- ) |
Vocabulary
io.directories
Inputs
from | a pathname string |
---|---|
to | a directory pathname string |
Outputs
None
Word description
Moves a file to another directory without renaming it.
Errors
Throws an error if the file does not exist or if the move operation fails.
Definition
: move-file-into ( from to -- ) to-directory move-file ;