You are not logged in.

#1 2010-06-14 23:46:32

y27
Member
Registered: 2009-05-27
Posts: 147
Website

tidy -- simple python script to clean annoying files and directories

Hi all,

recently I opened a much-used flash drive and there was a lot of files like Thumbs.db, Mac OS' ._*, .DS_Store, etc all over it, making using it really annoying.

So I decided to mimic a simple utility I saw as a plugin in Rockbox, which takes all of these files and deletes them.

The result is a simple python script which you can find at:
http://github.com/houbysoft/short/blob/master/tidy

Usage should be self-explanatory. Be warned, by default, it deletes everything that matches the regular expressions without warning (this should be fine though, so if you want to be safe, try the -s and -v (simulate, verbose) or -p (prompt) options first.


As usual, any feedback is welcome, and if you know of other files it should clean, please post them here!

Offline

Board footer

Powered by FluxBB