← Back to team overview

linuxdcpp-contributors team mailing list archive

Re: [Question #189893]: Does linux DC++ read precalculated hashes from a file?

 

Question #189893 on LinuxDC++ changed:
https://answers.launchpad.net/linuxdcpp/+question/189893

Steven Sheehy posted a new comment:
The point of hashing is a read only operation to construct a key that
uniquely identifies that file and leaves the shared folder as it was
found. The approach you're suggesting would violate the read only aspect
of that and cause a large amount of files to be read and written on the
shared folder to store the hash. It makes much more sense to store the
TTH in a centralized file like the HashIndex.xml.

I don't see why parsing the xml is a problem. If you're capable of
writing a website then you should be capable of parsing a xml file using
your language of choice and an xml library. You could even parse it
using a simple one line command:

gawk -F '\"' '/<File/ {printf "%s %s\n", $2, $6}' HashIndex.xml

-- 
You received this question notification because you are a member of
LinuxDC++ Contributors, which is an answer contact for LinuxDC++.