javascript - Can I create a folder in www directory via phonegap/cordova in IOS? -
javascript - Can I create a folder in www directory via phonegap/cordova in IOS? -
i want download static webpage files(including .html/.css/.js/.png...) server cordova based app, users can browse them in webview. need create folders in www/ directory, how can accomplish it?
yes, can. can utilize window.requestfilesystem
obtain reference local filesystem (which application info folder).
here documentation page: http://docs.phonegap.com/en/3.0.0/cordova_file_file.md.html#localfilesystem
example functions be:
directory.getfile
filewriter.write(...)
you can create directories in there well. example:
filesystem.getdirectory(dirname, {create:true})
etc. etc. ;)
javascript ios html5 file cordova
Comments
Post a Comment