Summary: | 'Remove Torrent & Data' does not delete empty directories | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | Charles Phoenix <phoenixreads> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Charles Phoenix
2007-08-01 12:14:33 UTC
SVN commit 697027 by guisson: Make sure empty directories get deleted if the files in them are not selected for download BUG: 148419 M +5 -5 multifilecache.cpp --- branches/extragear/kde3/network/ktorrent/libktorrent/torrent/multifilecache.cpp #697026:697027 @@ -734,12 +734,12 @@ for (Uint32 i = 0;i < tor.getNumFiles();i++) { TorrentFile & tf = tor.getFile(i); - if (tf.doNotDownload()) - continue; - QString fpath = tf.getPath(); - // first delete the file - bt::Delete(output_dir + fpath); + if (!tf.doNotDownload()) + { + // first delete the file + bt::Delete(output_dir + fpath); + } // check for subdirectories DeleteEmptyDirs(output_dir,fpath); |