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

pass, if failed to delete instead of crashing #566

Closed
wants to merge 1 commit into
base: devel
from

Conversation

Projects
None yet
1 participant
@arne182
Copy link
Contributor

arne182 commented Mar 13, 2019

Some auto delete scripts out there will crash because the file is not longer on the system but the unlink function throws an exception.

If the file does not exsist then return success because the file does not exsist anymore.

pass, if failed to delete instead of crashing
Some auto delete scripts out there will crash because the file is not longer on the system but the unlink function throws an exception.

If the file does not exsist then return success because the file does not exsist anymore.
@arne182

This comment has been minimized.

Copy link
Contributor Author

arne182 commented Mar 22, 2019

Found person. Helped explain why it was crashing. He was running
rm -rf /storage/emulated/0/realdata/
Which deleted the folder while the upload was running.
First stop OP and then rm -rf /storage/emulated/0/realdata/* was the solution

@arne182 arne182 closed this Mar 22, 2019

@arne182 arne182 deleted the arne182:patch-3 branch Mar 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.