Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /fdev31_wirikiki /scripts /fix_top_level.py
| #!/bin/env python | |
| import sys | |
| import os | |
| for root, dirs, files in os.walk(sys.argv[1]): | |
| for folder in dirs: | |
| if folder == "EGG-INFO": | |
| top_level_file = os.path.join(root, folder, "top_level.txt") | |
| if not os.path.exists(top_level_file): | |
| name = os.path.split(root)[-1].split("-", 1)[0] | |
| open(top_level_file, "w").write(name) | |
Xet Storage Details
- Size:
- 387 Bytes
- Xet hash:
- 807c7b6681342d4a1c91efa971025bd7c6465493d487de29e43ff9b1cf90f5f4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.