This module implements file handling.
See also:
- paths module for path manipulation
Procs
proc moveFile(source, dest: Path) {.inline, ...tags: [ReadDirEffect, ReadIOEffect, WriteIOEffect], raises: [OSError, IOError, Exception], forbids: [].}
-
Moves a file from source to dest.
Symlinks are not followed: if source is a symlink, it is itself moved, not its target.
If this fails, OSError is raised. If dest already exists, it will be overwritten.
Can be used to rename files.
See also:
Source Edit