- {
- “cells”: [
- {
“cell_type”: “code”, “execution_count”: 1, “metadata”: {}, “outputs”: [], “source”: [
“import mdf_toolbox”]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“# File Utilities”]
}, {
“cell_type”: “markdown”, “metadata”: {}, “source”: [
“## uncompress_treen”, “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.n”, “n”, “This utility uses shutil.unpack_archive() to extract archives. Any format unknown to or incompatible with it will not be processed (or deleted).”]
}, {
“cell_type”: “code”, “execution_count”: 2, “metadata”: {}, “outputs”: [
- {
- “data”: {
- “text/plain”: [
- “{‘num_extracted’: 3, ‘success’: True}”
]
}, “execution_count”: 2, “metadata”: {}, “output_type”: “execute_result”
}
], “source”: [
“mdf_toolbox.uncompress_tree(“~/Downloads/uncompress_test”)”]
}, {
“cell_type”: “code”, “execution_count”: null, “metadata”: {}, “outputs”: [], “source”: []}
], “metadata”: {
- “kernelspec”: {
- “display_name”: “Python 3”, “language”: “python”, “name”: “python3”
}, “language_info”: {
- “codemirror_mode”: {
- “name”: “ipython”, “version”: 3
}, “file_extension”: “.py”, “mimetype”: “text/x-python”, “name”: “python”, “nbconvert_exporter”: “python”, “pygments_lexer”: “ipython3”, “version”: “3.6.4”
}
}, “nbformat”: 4, “nbformat_minor”: 2
}