This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import zipfile | |
| def recursive_unzip(zip_file, target_dir): | |
| print("export: ", zip_file) | |
| if not os.path.exists(target_dir): | |
| os.makedirs(target_dir) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import filecmp | |
| import os | |
| import pathlib | |
| import shutil | |
| def no_change(src_file, dest_file): | |
| equal = filecmp.cmp(src_file.resolve(), dest_file.resolve(), False) | |
| return equal |
OlderNewer