Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- def caller():
- for (root,dirs,files) in os.walk(os.getcwd(), topdown=True):
- for file in files:
- if file.endswith('.url') or file.endswith('.txt'):
- print(os.remove(os.path.join(root, file)))
- caller()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement