Small file cleaning tool. Recursively search directories and delete files with specified extensions.
clean .
directory
python tmp_cleaner.py
or clean dir1, dir2, dir3
directories
python tmp_cleaner.py dir1 dir2 dir3
Edit this line - create your own list to avoid typing extensions every time you use the script.
default_extensions = ['*.o', '*.obj', '*.class', '*.out'] # EXTENSIONS LIST