You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/08/23 13:51:03 UTC
[GitHub] Domvel opened a new issue #246: writeFile create path (deep) if not
exists.
Domvel opened a new issue #246: writeFile create path (deep) if not exists.
URL: https://github.com/apache/cordova-plugin-file/issues/246
How to create a full path on or before writeFile? I already tried several variations and going insane.
I tried it with `getFile` and options `create` and with `createDir`. Nothing works.
```js
// How to create the full path if not exist?
file.writeFile(file.externalDataDirectory, 'subfolder/another/file.txt', blob, {replace: true});
```
Maybe a option `createPath` or just `create` for `writeFile` is maybe not the worst idea?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org