Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- print("Walking SDCard...")
- walk = os.walk("/sdcard/")
- print("Scanning for files...")
- found = []
- i = 0
- for root,dirs,files in walk:
- for cur in files:
- if cur.endswith(".tcookieid"):
- i += 1
- found.append(root+"/"+cur)
- print(i,"files found so far")
- print("Deleting files...")
- for cur in found:
- os.unlink(cur)
- print("Removed",cur)
- print("Done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement