Do You Believe in Magic?
December 25, 2007 on 10:36 pm | In Personal, Programming | By QBasicer |I’ve long said that I needed to sort my music. After many years of collecting music on different operating systems, and never bothering to sort it. Upon learning about libmagic, I decided I finally have the opportunity to sort it all. I wrote a little program that takes a source and destination directory. It starts recursively reading a directory, and attempts to recognize each file in it by it’s mime type. For example, my MP3s come out as audo/mpeg. I take this information and store it in the destination directory. All my images and videos get sorted, programs, etc. It’s pretty quick, and did over 14 gigs of stuff in about half an hour. I’m going to be releasing the source soon, as I think it’s a pretty handy tool. I’ve only tested it under linux, as I’m not sure about libmagic on any other platforms.
No Comments yet »
RSS feed for comments on this post. TrackBack URI
Leave a comment
Powered by WordPress with Pool theme design by Borja Fernandez. I rewrote the CSS because I'm cool like that.
Entries and comments feeds.
Valid XHTML and CSS. ^Top^
