This
```ts
public async createDirectory(dirPath: string): Promise<void> {
const path = await
this.file.resolveDirectoryUrl(this.file.externalDataDirectory);
await new Promise((resolve, reject) => {
path.getDirectory(dirPath, { create: true }, resolve, reject);
});
}
```
`dirPath ='myfolder';`
does not work. btw. you see that the function `getDirectory` is not wrapped by
the ionic. So I wrapped it in a promise for async-await.
The code above is a simplified version of the example of the documentation.
Just in typescript and the ionic wrapper.
Error: `code: 9` `message: "INVALID_MODIFICATION_ERR"`
[ Full content available at:
https://github.com/apache/cordova-plugin-file/issues/246 ]
This message was relayed via gitbox.apache.org for [email protected]