Cordova file plugin - overwrite files -


as far can tell, there's no library call replace file (or folder). if use fileentry.copyto or directoryentry.copyto , destination exists, invalid_modification_err (error 9).

if delete file first, copyto works. if goes wrong? there overwrite option i've missed somewhere? or have write own code ensure copy successful before removing original?

you can add exclusive: false option parameter overwrite existing files.

example https://github.com/apache/cordova-plugin-file/blob/master/readme.md#create-a-persistent-file-


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -