[1]:
import mdf_toolbox
File Utilities¶
uncompress_tree¶
uncompress_tree() will extract all archives found under a given root directory. Optionally, the found archives can be deleted after extraction with delete_archives=True.
This utility uses shutil.unpack_archive() to extract archives. Any format unknown to or incompatible with it will not be processed (or deleted).
[2]:
mdf_toolbox.uncompress_tree("~/Downloads/uncompress_test")
[2]:
{'num_extracted': 3, 'success': True}
[ ]: