Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- dirPath = os.path.dirname(os.path.realpath(__file__))
- fileList = os.listdir(dirPath)
- for fileName in fileList:
- if fileName[-1] == "t":
- os.remove(dirPath + "/" + fileName)
- else:
- pass
- print("Valmis")
- #Lilith 30.05.2016
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement