Skip to content

Conversation

@AbhxyDxs
Copy link
Contributor

API29 is strict with path format in Scoped Storage! It requires trailing '/' and fails if '//' is present! So '/' is trimmed from the base path to prevent '//' and manually added trailing '/' to the final path.

… Storage

API29 is strict with path format in Scoped Storage! It requires trailing '/' and fails if '//' is present! So '/' is trimmed from base path to prevent '//' and manually added trailing '/' to the final path
@AbhxyDxs AbhxyDxs closed this Nov 27, 2025
@mardous
Copy link
Owner

mardous commented Nov 27, 2025

Hi. Why did you close it?

@AbhxyDxs
Copy link
Contributor Author

AbhxyDxs commented Dec 3, 2025

Still Android 10 shows 'Failed to save' error, even after fixing the '/' issue!
I think it's because of the aggressive A10 OS properties! As soon as you define the file (insert(...)), the OS tries to "scan" it immediately. If the file is empty (because you haven't written the data stream yet) or the folder doesn't exist yet, the OS rejects it and throws an error.
I'll look into it and come up with a better solution as soon as I get some time :)

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.

2 participants