Maximum

Getting TTH for directory

7 posts in this topic

Hello all, I request a "TTH folder" feature.

For example I want to give magnet link for music album but I can get TTH for only 1 file it is very inconvenient.

Thanks.

Share this post


Link to post
Share on other sites

TTH for a folder is a technical impossibility... there have been some discussion in regards to folder hashes and the like, but right now anyways, since a directory is not a real file it can not be hashed "for real" thus no hash for directory can exist.

Share this post


Link to post
Share on other sites

Hm, but how It works in greylink?

Heh, it may work... but whatever they provide is not a real TTH (at least not a real TTH for the real directory, because directories can not be hashed in traditional sense), that is not to say you can't assign a some kind of checksum for a directory but it is certainly not a TTH hash that normal DC clients can understand or calculate without specialized implementation.

Whatever greylink method is using I dunno, however, like I said creating pseudo hashes for directories has been discussed before but so far there is no consensus of any kind.

Share this post


Link to post
Share on other sites

Or you can look at bundles in current DC++ branch which have TTH for directories.

Yeah, I just realised what those do yesterday...

Share this post


Link to post
Share on other sites
On 30.07.2011 at 11:20 PM, Big Muscle said:

Or you can look at bundles in current DC++ branch which have TTH for directories.

Where is it implemented? Looked into sources of FlyLink and StrongDC for several hours already. Everything is so asynchronous, and folders indeed eventually get TTH somehow, but I have no clue how does it happen with them.

Wiki with "Hash set extension" description is dead, and my attempts to recalculate hash completely independently in Ada (using XMLAda, AdaCF and Adagio's Tiger Tree implementation). TTH for files works fine. Can't make it work for folders. I always thought that it's just TTH of sorted concatenated hashes, and I can reimplement it at any time, but time has come, and I just can't get through.

I tried to sort or not sort hashes. I tried to reverse endianness or not reverse endianness. I tried to reverse endianness before or after sorting. I tried raw TIGER or TTH. I just can't make it match.

I'm totally destroyed.

Share this post


Link to post
Share on other sites