Shutil Statement#
Codeaudit checks on shutil use.
Reason:
It is possible that files are created outside of the path specified in the extract_dir argument, e.g. members that have absolute filenames starting with / or filenames with two dots ...
Other implemented checks on shutil module methods:
shutil.unpack_archive
shutil.copy
shutil.copy2
shutil.copytree
shutil.chown
shutil.rmtree
Note:
shutil.rmtreecan be dangerous. However this call is/will be depreciated within theshutilmodule. For now Python Code Audit will check on usage.