Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not create save folder in advance. Closes #5422 #5443

Merged
merged 1 commit into from Jul 5, 2016

Conversation

glassez
Copy link
Member

@glassez glassez commented Jun 26, 2016

Do not create the save folder as long as the torrent will not start downloading.

@@ -1284,10 +1284,6 @@ void TorrentHandle::moveStorage(const QString &newPath)
if (QDir(oldPath) == QDir(newPath)) return;

qDebug("move storage: %s to %s", qPrintable(oldPath), qPrintable(newPath));
// Create destination directory if necessary
// or move_storage() will fail...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Asking precautionary: You have tested now what the comment says, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Besides, I deal with move_storage() internals recently so I know exactly how it works.

@sledgehammer999
Copy link
Member

Thank you then.

@sledgehammer999 sledgehammer999 merged commit 5e114c0 into qbittorrent:master Jul 5, 2016
@sueridgepipe
Copy link

Release notes in the News section of the qBittorrent site says this bugfix was included in 3.3.6.

I have Do not start the download automatically checked and Pre-allocate disk space for all files is not checked in my settings. My understanding is with these settings that the base directories for added torrents should not be created.

I upgraded to 3.3.6 (Win8.1), added a couple of torrents, and their base directories were still created.

@glassez
Copy link
Member Author

glassez commented Jul 21, 2016

added a couple of torrents, and their base directories were still created.

Please describe in more detail what do you mean. How do you add torrents, where etc.

@sueridgepipe
Copy link

sueridgepipe commented Jul 21, 2016

I downloaded a couple of torrent files into a monitored directory, specified in the settings.

I then started qBt which automatically added these torrents into the application. They are both multi-file torrents which will eventually be downloaded into their own directories. They do not start downloading immediately, as per the Do not start the download automatically setting, thus have a Status of Paused.

I immediately check in my qBt Default Save Path directory and both torrent content directories were created as part of the torrent add functionality. These directories are empty, which I would expect given Pre-allocate disk space for all files settings is not checked.

My understanding is these empty directories should not have been created.

@sueridgepipe
Copy link

Will this be fixed and included in the next release?

@sueridgepipe
Copy link

Hey glassez, you there? Your changes didn't work, are you going to fix?

@glassez
Copy link
Member Author

glassez commented Aug 9, 2016

Hey glassez, you there?

I'm unavailable at this time.

Your changes didn't work

I made some core changes here and they work. Apparently your problem is caused on some other application layer.

@sueridgepipe
Copy link

No they do not work... did you even test this?

Adding a torrent also creates the save directory, no matter how it is added.

With development & testing attitudes like yours is it any wonder qBt is riddled with bugs. You are far to concerned with protecting your precious ego than creating a quality FOSS app.

@glassez
Copy link
Member Author

glassez commented Aug 9, 2016

@sueridgepipe Well, where did you see my excessive concern for my ego?
I did not insult you. I just said that my change in this PR do not cover all the application and affect only its core.
And Yes, of cause, I did test it! Moreover, I've tested it just for you now: I added some multifile torrent, I uncheck "Start torrent" and qBittorrent did not create torrent content folder both in destination and incomplete folders.
But the problem you described may be caused by some other application level or subsystem (as I said above). Unfortunately, now I don't have the free time to find and fix it.

P.S. But if you're going to continue to speak out in your manner above, I prefer to end this discussion (and I will devote my free time drinking beer rather than fixing qBittorrent bugs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants