I've got a default.tbn file in all of my game directories on the F and G drives. There are a lot.
Tried the following script and it fails. Not sure what I'm doing wrong:
Code: Select all
import os dir = "F:\" files = os.listdir(dir) for file in files: if file.endswith(".tbn"): os.remove(os.path.join(dir,file))