-
Notifications
You must be signed in to change notification settings - Fork 603
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
@capacitor/filesystem downloadFile() fails to create missing directories under android #1835
Comments
This issue has been labeled as |
Same issue here :,) |
any fix on this issue? |
Same issue here |
Same here. |
And same... |
This issue is still persisting. Do we know the solution for this issue. Also, the getUri() fails and crashes the app. |
Any solution |
Still not fixed in version 6.0.1 |
Still not fixed in 6.0.2. |
Temporary workaround, before downloading:
|
Bug Report
The
downloadFile()
method doesn't create missing directories under android.Plugin(s)
@capacitor/[email protected]
Capacitor Version
Platform(s)
Android
Current Behavior
Download fails on android, when setting the option
recursive
totrue
and providing apath
with subdirectories that doesn't exist.The above code will result in the following error.
Expected Behavior
The missing folders should be created and the file should be saved at the specified path. On iOS, the missing folders are created.
Code Reproduction
Repository with minimal reproduction
Other Technical Details
Tested on native android device with android version 13.
Changing or omitting the
directory
option does not change the behavior, only the error message becomes slightly different. If you create the folder beforehand with themkdir
function, the download also works.Additional Context
Error in Logcat
The text was updated successfully, but these errors were encountered: