The shutil module offers a number of high-level operations on
files and collections of files. In particular, functions are provided
which support file copying and removal.
Caveat: On MacOS, the resource fork and other metadata are
not used. For file copies, this means that resources will be lost and
file type and creator codes will not be correct.
The source code for this should be considered an example rather than
a tool.
copyfile(src, dst)
copyfileobj(fsrc, fdst[, length])
copymode(src, dst)
copystat(src, dst)
copy(src, dst)
copy2(src, dst)
copytree(src, dst[, symlinks])
Sous-sections