Delete a file in a directory except for first file (or specific file) in Python
Delete a file in a directory except for first file (or specific file) in Python Question: I want to delete all files in a directory except for one file in python. I used os.remove and os.system(with rm and fine), but all of them return errors. Lets say I have a folder X and in there …
Total answers: 1