I am picking a file through this plugin file picker
It is then giving me the file URI which I am choosing through iCloud
.
like this :
"/private/var/mobile/Containers/Data/Application/5F677B3D-2383-4454-8EAF-B21D02F8119E/tmp/bundleid-Inbox/filename.pdf"
Now this Uri tells us that the file is in temp Directory
After getting URI I am using CheckFile function to check whether the file exists or not.
this.file.checkFile(Cordova.file.tempDirectory+"bundleId-Inbox",currentName).then(succ=>{console.log("File found : ", succ)},
err=>{
console.log("File not found : ", err)})
Current Name is the file Name
But when check that the file exist or not it is giving me the error file not found error with code 1.
Why is that so ?