Suddenly this works now. ```ts await this.file.createDir(this.file.externalDataDirectory, 'myfolder', true); ``` I already tried it yesterday without success. It's weird that you have to set "replace" flag. This function should create a folder if not exist and should not fail if it already exists. Therefore use the methods checkDir and for replace removeDir.
I have no idea what was wrong in the last days. But I found a Android bug: The "media storage" has a cache problem. If you create a folder on the sd-card (virtual: internal memory) you can't see this folder on Windows if the device is connected as Media Storage (MTP) until you clear the cache in settings > app > media storage. This is really weak. Maybe the plugin has to trigger the FS to update the cache? Closed, because I can create directories now. It's not quite perfect. But ok. [ Full content available at: https://github.com/apache/cordova-plugin-file/issues/246 ] This message was relayed via gitbox.apache.org for [email protected]
