How to check a file's existence in phone directory with phonegap

后端 未结 14 2033
太阳男子
太阳男子 2020-12-05 10:49

I\'m writing an Android application with Phonegap 1.4.1 and Sencha that downloads and reads pdf files. How can I check whether the file exists in the phone directory using e

14条回答
  •  渐次进展
    2020-12-05 11:42

    The above answers did not work for me, but this did :

    window.resolveLocalFileSystemURL(fullFilePath, success, fail);
    

    from : http://www.raymondcamden.com/2014/07/01/Cordova-Sample-Check-for-a-file-and-download-if-it-isnt-there

提交回复
热议问题