invalid directory structure in queue after moving a dir

Archived discussion about features (predating the use of Bugzilla as a bug and feature tracker)

Moderator: Moderators

Locked
paka
Posts: 45
Joined: 2004-12-27 19:20

invalid directory structure in queue after moving a dir

Post by paka » 2004-12-30 19:19

I came across such a bug in 0.668: when I rename a directory (pointing at a new, existing directory in system directory tree browsing window) that has subdirectories in my queue, the subdirectories' names are incorporated into filenames, instead of the subdirectories' structure being reconstructed under a new location in the queue. Simply - backslash between subdirectories' names is lost.

For example: If I have in my queue "d:\somedir\subdir\file.zip", there exists a directory "d:\anotherdir" and I want to move the whole directory "d:\somedir" to "d:\anotherdir", then I'll get in DC++ 0.668's queue
- "d:\anotherdir\subdirfile.zip" (and other files, if there were any), instead of which should be:
- "d:\anotherdir\subdir\file.zip" (note the backslash).

The fix is a small file, I've sent it to Bugzilla: http://dcplusplus.sourceforge.net/cgi-b ... cgi?id=411. The patched DC++ 0.668 was tested with success on 2 sample queues.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-12-31 07:10

Seems to be related to this bug: http://dcplusplus.sourceforge.net/cgi-b ... g.cgi?id=9

Are you able to reproduce that one? Does you patch cover it as well?
The world is coming to an end. Please log off.

DC++ Guide | Words

paka
Posts: 45
Joined: 2004-12-27 19:20

Post by paka » 2005-01-01 20:44

It seems to be exactly the same bug. Sorry for duplicating.

The patch has been added to development version 0.669.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2005-01-02 06:43

Excellent.
The world is coming to an end. Please log off.

DC++ Guide | Words

Locked