shutil
contains high-level file operations. import shutil shutil.copyfile('script.py', 'script.py.copied')
shutil
is rmtree
that can be used to remove entire entire directory trees. os
library. import shutil shutil.unpack_archive('data.zip', '.')
shutil
(or the zip
module), and throws a NotImplementedError: That compression method is not supported exception.