This function renames files or directories from their current paths to new
paths. Similar to Python's pathlib.Path.rename()
method.
Usage
Path_rename(paths, new_paths)
Arguments
- paths
A character vector of source file paths.
- new_paths
A character vector of target file paths.
Examples
if (FALSE) {
Path_rename("old_file.txt", "new_file.txt")
}