github

On an Android machine

 RNFS.readDir(RNFS.DocumentDirectoryPath)
      .then((files) => {
        console.log(files)
      })
      .catch((err) => {
        console.log(err.message, err.code)
      })
Copy the code

OUTPUT:(path of current file)

//storage/emulated/0/Android/data/com.reactnative.edgeserver/files
RNFS.readDir(RNFS.ExternalDirectoryPath)
      .then((files) => {
        console.log(files)
      })
      .catch((err) => {
        console.log(err.message, err.code)
      })
Copy the code

OUTPUT:[]