copy(filepathToBeCopied
, newFileDestination
)
NOTE: Running this function repeatedly on the same file/s will overwrite their counterparts in the new file location, so any edits to the files in the new location will be overwritten and lost.
copytree(dirToBeCopied
, newDirDestination
)
NOTE: Running this function repeatedly will error if parent dir already exists.
move(dirToBeMoved
, newDirDestination
)
NOTE: This moves the dir/file, not copies.
Delete directory and its entire contents
rmtree(filePathToBeDeleted
)
NOTE: Unlike the os.rmdir() this will delete dir and file contents without throwing an error. This delete is permanent and does not send deleted content to OS Recycle Bin.