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

Fix some file renaming woes (probably) #20128

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

calumapplepie
Copy link

Hullo, new contributer, wanted to avoid others losing data the way I just did!

I added a few new checks that, to my knowlege, will prevent users from renaming files on top of files that exist. While this can be useful for reseeding, it causes instant data loss if qbittorrent has downloaded any part of the existing file.

I also do some cleanup on messages and exists() function.

Reject the PR if you'd prefer to move the functionality to a different place, but I had the itch to hack something up to fix this, and I couldn't resist.

Probably closes a few issues, but I wasn't sure which, and I should get back to final projects.

@luzpaz
Copy link
Contributor

luzpaz commented Dec 16, 2023

Thanks! Can you look at https://github.com/qbittorrent/qBittorrent/issues?q=is%3Aopen+is%3Aissue+label%3A%22Data+loss%22 and see which tickets this PR addresses ?

Copy link

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added the Stale label Feb 15, 2024
@calumapplepie
Copy link
Author

Not stale, I just don’t have the bandwidth to hunt through issues in an unfamiliar repo.

@github-actions github-actions bot removed the Stale label Feb 16, 2024
Copy link

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added the Stale label Apr 16, 2024
@calumapplepie
Copy link
Author

calumapplepie commented Apr 16, 2024 via email

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