← Back to team overview

linuxdcpp-team team mailing list archive

Re: [Question #131065]: How can I rename files without rehashing

 

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

Steven Sheehy proposed the following answer:
I'm not sure there's any way around this. For example, let's say you had
a file called A.txt. You stepped away from your computer and when you
came back there was a file called B.txt and no A.txt. The only way you
would know whether it was the same file would be to open it and examine
its contents (e.g. hash it). This is what DC++ does. The only other
possible way that I can think of is to examine the file's inode to see
if it changed.

So short answer: no, you can't currently do it.
Long answer: possibly by changing the code to examine the file's inode, so you may want to check with the DC++ people to see if they'd consider this.

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