joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 772 forks source link

TypeError: Missing argument "path" #596

Open grkemtneri opened 4 years ago

grkemtneri commented 4 years ago

hi guys, ı have to try RNFetchBlob.fs.exists but, it gave this error "TypeError: Missing argument "path" ".

source code:

 function isExistsFile(file) {
    RNFetchBlob.fs.exists(file).then(exists=>{
      if(exists){
        setDirExistsValue(true);
      }
      else{
        setDirExistsValue(false);
      }
    }).catch((err) => { console.log('err',err) })
  }

  useEffect(() => {
    setTable(route.params);
    isExistsFile(table.dirFile);
  }, []);
tilonet commented 4 years ago

any update ?, same problem here RN 0.61.5 and rn-fetch-blob 0.12.0

grkemtneri commented 4 years ago

nope still I have same problem

asagcs commented 3 years ago

+1

KashyapProdigy commented 3 years ago

+1

dungle27 commented 3 years ago

haven't any update for this issue from May ????

powext commented 3 years ago

+1

dozsolti commented 2 years ago

Most likely the file/table.dirFile is not a string Source: https://github.com/joltup/rn-fetch-blob/blob/master/fs.js#L337