← Back to team overview

linuxdcpp-team team mailing list archive

[Bug 623291] Re: Manually disconnected unfinished filelists aren't deleted

 

This is the code path when a running download abandoned because the item was removed from the queue while it still has been downloaded. Therefore, qi is not available anymore here.
For normal files :
d->getPath() gives the same as q->getTarget(), the full target path will the file be moved to when finished
d->getTempTarget() gives the same as q->getTempTarget(), the full path in the temp folder including the TTH.dctmp ending

For file lists :
d->getPath() gives the full path of the filelist in the FileLists folder, without the extension
d->getTempTarget() gives the position relative to the list root or empty

The file list extension is never stored anywhere, not even in the queue
because in the time of queue addition its not known if the peer client
supports bzlist or not.

This second patch may look better...

** Patch added: "deldisconnectedlists2.patch"
   https://bugs.launchpad.net/dcplusplus/+bug/623291/+attachment/1754446/+files/deldisconnectedlists2.patch

-- 
You received this bug notification because you are a member of
Dcplusplus-team, which is subscribed to DC++.
https://bugs.launchpad.net/bugs/623291

Title:
  Manually disconnected unfinished filelists aren't deleted

Status in DC++:
  New

Bug description:
  ...so corrupted filelists can remain in the Filelists folder if the user disconnects them manually for some reason. A possible solution attached.





References