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. 

[ Full content available at: 
https://github.com/apache/cordova-plugin-file/issues/246 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to