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

[Bug]: Autoscan moves file before it is completely downloaded #76

Open
RobRoyce opened this issue Nov 5, 2022 · 1 comment
Open

[Bug]: Autoscan moves file before it is completely downloaded #76

RobRoyce opened this issue Nov 5, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@RobRoyce
Copy link
Member

RobRoyce commented Nov 5, 2022

Currently, when a large file is being downloaded and Autoscan is triggered, the app will move the partially downloaded file to the pending folder, causing the download to fail and file to be partial.

Desired behavior: wait for the download to complete before ever processing the file.

@RobRoyce RobRoyce added the bug Something isn't working label Nov 7, 2022
@AndreiSVasilev
Copy link

Just FYI, on Windows this is not an issue. An error is still thrown, but since Windows has file locking, the autoscan service is prevented from moving the file until it is completely downloaded and unlocked. Whereas on UNIX style systems you are able to move files regardless of what other processes may be using them.

On Windows it produces an EBUSY error, and it will simply continue to occur until the file is unlocked, which will only happen when the file is done being downloaded. At that point, when the autoscan service is actually able to move it, there is no issue and the file is successfully moved to the pending folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants