Skip to content

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

Merged
d4rken merged 1 commit into
mainfrom
fix/io_exists_check
Dec 27, 2023
Merged

IO: Fix WriteException for already deleted files in NORMAL mode#897
d4rken merged 1 commit into
mainfrom
fix/io_exists_check

Conversation

@d4rken
Copy link
Copy Markdown
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