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

Fix Issue 1505(Fix cache delete) #1507

Merged
merged 5 commits into from
Aug 16, 2024
Merged

Conversation

stakanojmdc
Copy link
Contributor

Fix #1505

implement recursive delete file.
because, Java cannot delete not-empty directory.

@@ -471,4 +465,18 @@ private static String getDocumentPathFromTreeUri(final Uri treeUri) {
else return File.separator;
}

private static void recursiveDeleteFile(final File file) throws Exception {
if (!file.exists()) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old code had a null check on the file too. Perhaps add that here as well?

Copy link
Contributor Author

@stakanojmdc stakanojmdc Aug 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@navaronbracke Thanks, I fixed. 375a10a

@navaronbracke
Copy link
Collaborator

The version & changelog also needs to be updated.

@navaronbracke navaronbracke merged commit 8bbe066 into miguelpruivo:master Aug 16, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not work clearTemporaryFiles() on Android
2 participants