Bug Report
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 7.4.3
@capacitor/core: 7.4.3
@capacitor/android: 7.4.3
@capacitor/ios: 7.4.3
Installed Dependencies:
@capacitor/ios: not installed
@capacitor/cli: 7.4.3
@capacitor/core: 7.4.3
@capacitor/android: 7.4.3
[success] Android looking great! 👌
Platform(s)
Android
Current Behavior
When Capacitor.Plugins.Filesystem.mkdir is used with the recursive=true option to create the same directories twice within a short period of time (), the resulting error varies between
OS-PLUG-FILE-0010, OS-PLUG-FILE-0011 and OS-PLUG-FILE-0013
Especially OS-PLUG-FILE-0011 is misleading when the recursive option is set to true, as the other part of the error message ("or parent directory creation failed") is really just a hidden "unknown error".
Expected Behavior
Ideally, this should always lead to a OS-PLUG-FILE-0010 error. If that is not possible, one would expect at least to get OS-PLUG-FILE-0013 instead of OS-PLUG-FILE-0011 when recursive is set to true,
Code Reproduction
https://github.com/Mottschi/capacitor-filesystem-mkdir-bug-reproduction
See the README for details on how to run the reproduction app.
Other Technical Details
Additional Context