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

IO: Fix WriteException for already deleted files in NORMAL mode #897

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

d4rken
Copy link
Member

@d4rken d4rken commented Dec 27, 2023

canNormalWrite also returns false if the file is deleted, then we aborted early with an exception. Instead we want to run into the exists() check later on and not throw an exception if the file no longer exists. This worked for ROOT and ADB, but not NORMAL due to the extra writable check

`canNormalWrite` also returns `false` if the file is deleted, then we aborted early with an exception.
Instead we want to run into the `exists()` check later on and not throw an exception if the file no longer exists.
This worked for ROOT and ADB, but not NORMAL due to the extra writable check
@d4rken d4rken added bug Something isn't working as expected c: IO SAF/Normal/Root access labels Dec 27, 2023
@d4rken d4rken merged commit 7ef6b7f into main Dec 27, 2023
@d4rken d4rken deleted the fix/io_exists_check branch December 27, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as expected c: IO SAF/Normal/Root access
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant