You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue needs more information before it can be addressed.
In particular, the reporter needs to provide a minimal sample app that demonstrates the issue.
If no sample app is provided within 15 days, the issue will be closed.
Bug Report
Plugin(s)
Filesystem
Capacitor Version
Capacitor v5.7.5
Platform(s)
Android
Current Behavior
App Crash happening when rmdir function is called on a directory that does not exist or a dir that has no files (sometimes)
Expected Behavior
Need to check if listFiles is returning null or an empty array
Other Technical Details
code snippet from FileSystemPlugin.java
if (fileObject.isDirectory() && fileObject.listFiles().length != 0 && !recursive) {
call.reject("Directory is not empty");
return;
}
The text was updated successfully, but these errors were encountered: