Advertisement
Guest User

Delete .tcookieid

a guest
Sep 30th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import os
  2. print("Walking SDCard...")
  3. walk = os.walk("/sdcard/")
  4. print("Scanning for files...")
  5. found = []
  6. i = 0
  7. for root,dirs,files in walk:
  8.     for cur in files:
  9.         if cur.endswith(".tcookieid"):
  10.             i += 1
  11.             found.append(root+"/"+cur)
  12.             print(i,"files found so far")
  13. print("Deleting files...")
  14. for cur in found:
  15.     os.unlink(cur)
  16.     print("Removed",cur)
  17. print("Done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement