Expand description
§rfm
rfm is a convenient and intuitive way to interact with files on OS.
Function naming is similar to Unix commands
(ls, mkdir, mv, rm, cp, touch etc.),
so you can easily figure out how to use it.
Functions§
- clean
- Clears the directory/directories of all child files and directories on the
passed path.
paths- takes a list of paths of what you want to clean. - cp
- Copies files and directories, including nested files and directories.
from- takes a list of paths of what you want to copy.to- destination path. - extract
- Extracts all files from the directory, including nested files.
from- takes a list of paths of where you want to extract files from.to- destination path. - get_
size - Returns the size of a file or directory in bytes
path- the path to the directory/file whose size you want to get. - ls
- Read the directory/directories and return the content.
dir- takes the path to the directory whose contents you want to retrieve. - mkdir
- Creates a directory/directories on the passed path. Note, the function
creates all missing directories if they occur in the passed parameter.
dir_paths- takes a list of paths of what you want to create. - mv
- Moves files and directories, including nested files and directories.
from- takes a list of paths of what you want to copy.to- destination path. - rm
- Deletes files/directories (including nested files/directories).
from- takes a list of paths of what you want to delete. - touch
- Creates a file/files in the passed path.
file_paths- takes a list of paths of what you want to create.