shutil
shutil is a Python standard library module that provides high-level operations on files and collections of files. It sits atop the os module and offers a portable interface for common file-system tasks across platforms such as Windows, macOS, and Linux.
Key capabilities include copying and moving files, removing directories, and handling archives. Core functions include copyfile
Because it relies on the standard library, shutil favors cross-platform compatibility and works with both path