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:https://snack.expo.io/@babydragon9703111/file-system-delete
snack simulator not encounter problem.
But device would meet it.
Here also have same issue in github:https://github.com/expo/expo/issues/5170

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