Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import os
  2.  
  3. def caller():
  4. for (root,dirs,files) in os.walk(os.getcwd(), topdown=True):
  5. for file in files:
  6. if file.endswith('.url') or file.endswith('.txt'):
  7. print(os.remove(os.path.join(root, file)))
  8.  
  9.  
  10.  
  11. caller()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement