RobinBobin / react-native-google-drive-api-wrapper

This wrapper facilitates the use of the Google Drive API in React Native projects.
110 stars 43 forks source link

Error: ENOENT: no such file or directory #26

Closed fatihbasol closed 4 years ago

fatihbasol commented 4 years ago

Hi everyone.

I want to download a image from google drive using google-drive-api-wrapper.

I got this issue when i want to download a file from drive

I try it with ExternalDirectoryPath and DocumentDirectoryPath. Both of them i got same error

ssssss

image

I got this error at console:

image

"dependencies": { "firebase": "^7.14.1", "react": "16.8.6", "react-native": "0.60.5", "react-native-firebase": "^5.6.0", "react-native-fs": "^2.13.2", "react-native-google-drive-api-wrapper": "^1.2.0", "react-native-google-signin": "^2.0.0" }, "devDependencies": { "@babel/core": "7.9.0", "@babel/runtime": "7.9.2", "@react-native-community/eslint-config": "0.0.3", "babel-jest": "24.9.0", "eslint": "6.8.0", "jest": "24.9.0", "metro-react-native-babel-preset": "0.54.1", "react-test-renderer": "16.8.6" },

RobinBobin commented 4 years ago

Hi!

  1. Authorization is done with GDrive.setAccessToken. You don't have to set the Authorization header manually.
  2. Please have a look at the phrase "... bear in mind that fromUrl is set automatically and any user supplied value will be overwritten" in the GDrive.files.download() description.
  3. I can be missing something but I didn't find a line, stating where you want the downloaded file stored, in your excerpt.