-
Notifications
You must be signed in to change notification settings - Fork 20
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
Transfers that were canceled are not deleted #7
Comments
This should also affect the PC version, right? I'll look in this. |
Yep, if sharing on smartphone the files are also not removed on pc. |
Not sure about this ticket. Currently, it does not delete cancelled transfers, because that may be pretty unexpected:
|
If I want to overwrite a file I don't need it anyway. But you also don't need a broken file. Those are entirely useless. You can just as well delete them completely. Another way would be this: You would need double the free space of the file you want to overwrite |
Hmm maybe I explained that wrong.
I often do, because overwriting is updating. Granted, this is not super important for single files, but I often (re-)download full directories to effectively update their contents. And I definitively don't want anything to be deleted, just because I decide to stop the update.
I considered this a couple of times over the years, but my issues with this approach are:
Don't get me wrong: I don't think the current situation is very good and I do value your input. However, I spent quite some time thinking about some of these features, and some rather trivial sounding things turn out to be quite complex when directories are included in the mix. While the current policy of "overwrite without asking, leave everything on cancel" might not be the best, it is at least simple and consistent for both directories and files. |
But you end up with a broken file or inconsistencies anyway even if you want to update.
You mean storage I assume. I don't have a solution for this. Usually if you don't have enough storage then you don't have enough storage. All the apps I saw tell you to free up space in these cases.
You could implement a setting to let the user decide how to deal with this. |
This is possible, yes.
This is what frustrates me about the file-replacement solution. It requires double the storage, which means downloading files might no longer be possible when free storage is low. Even worse: LanXchange cannot know beforehand if a transfer might fail: Before the transfer, only the total file size of a directory is known. If free storage < directory size, the transfer might still be possible, but might also fail at runtime, because of a very large file. Blocking downloads unless free storage > total size works, but prevents transfers in cases where they would be possible. Well, it is a surprisingly complicated issue with no easy solution, I need to think about this. |
The text was updated successfully, but these errors were encountered: