Last active
January 9, 2019 16:57
-
-
Save kieranjol/1928b6013c964ff8ed76c96b424deaad to your computer and use it in GitHub Desktop.
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
#/usr/bin/env python | |
import os | |
import sys | |
import ififuncs | |
import bitc | |
def main(): | |
source = sys.argv[1] | |
for root, dirnames, filenames in os.walk(source): | |
basename = os.path.basename(root) | |
if basename == 'objects': | |
if ififuncs.ask_yes_no('remove all files from %s?' % root) == 'Y': | |
for files in filenames: | |
print(files) | |
bitc.main(['files']) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment