Exception occurred while executing exported method deleteAsync on module ExponentFileSystem: null

  1. SDK Version: 35.0
  2. Platforms(Android/iOS/web/all):Android 5.0

Steps to Reproduce ```

myCreateDirectoryMethod = async () => {
try {
await FileSystem.makeDirectoryAsync(FileSystem.documentDirectory + ‘myDirectory’);
} catch (error) {
}
}
myDeleteDirectoryMethod = async () => {
try {
await FileSystem.deleteAsync(FileSystem.documentDirectory + ‘myDirectory’);
} catch (error) {
}
}

this.myCreateDirectoryMethod()
this.myDeleteDirectoryMethod()


Expected Behavior
Delete successfully

Actual Behavior
[Error: Encountered an exception while calling native method: Exception occurred while executing exported method deleteAsync on module ExponentFileSystem: null]

Hey @babydragon9703111,

Would you mind creating a Snack so I can test this on my end?

Cheers,
Adam

Here is my snack:file system delete - Snack
snack simulator not encounter problem.
But device would meet it.
Here also have same issue in github:[Android][FileSystem] Unable to delete any directory via FileSystem.deleteAsync(Uri) on Older Android Versions · Issue #5170 · expo/expo · GitHub

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.