Common File System Utilities.
Return an absolute path, while also expanding the ‘~’ user directory shortcut.
Parameters: path – The original path to expand. Return type: str
Rename a file or directory safely without overwriting an existing backup of the same name.
- path – The path to the file or directory to make a backup of.
- suffix – The suffix to rename files with.
The new path of backed up file/directory