Treearrange: a compliment to rsync

Aug 27, 2006 22:59

My quick hack of the evening is treearrange, which rearranges a directory tree based on a description of a directory tree, which the tool also generates ( Read more... )

tech, hack

Leave a comment

gaal August 28 2006, 06:55:34 UTC
Oh, excellent, I've been wanting something like this for music. I wonder though if this can't be made better by knowing more about tags. The problem is syncing files several ways, when sometimes the updates are to metadata. Unfortunately the filenames can sometimes change too, so there's no key for this!

Reply

evan August 28 2006, 07:03:43 UTC
I have exactly this problem! I guess you could fingerprint the files minus the tags -- the one part that doesn't change is the music data itself.

Reply

gaal August 28 2006, 07:24:10 UTC
But then how can resume work?

I start syncing by pulling a new file from remotehost to my localhost. Then the download is interrupted, and I resume it. What identifies the partial file on localhost?

Reply

gaal August 28 2006, 07:26:04 UTC
Hm, maybe the syncer should pre-tag all files with their own fingerprint and make sure that gets transmitted early?

Reply

brad August 28 2006, 17:14:07 UTC
Sure there is. The digest of the non-tag part of the file is the key. Screw audio fingerprinting.... ignoring the ID3 stuff of the mp3/ogg when digesting is eash enough. Then just fix the ID3 up on the other side, if the modtime is older.

Reply


Leave a comment

Up