Skip to content

Instantly share code, notes, and snippets.

@kieranjol
Last active January 9, 2019 16:57
Show Gist options
  • Save kieranjol/1928b6013c964ff8ed76c96b424deaad to your computer and use it in GitHub Desktop.
Save kieranjol/1928b6013c964ff8ed76c96b424deaad to your computer and use it in GitHub Desktop.
#/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