Is there a reason Filesystem.mkdir would not work on latest Windows 11/Chrome? I cannot get the mkdir function to work with either DATA and DOCUMENTS directory. Using latest Capacitor.
async makeDirectory(folderPath: string) {
console.log(folderPath);
const makeFolder = await Filesystem.mkdir({
path: folderPath,
directory: Directory.Documents // Tried Directory.Data too
}).then(res2 => {
// Folder exists
console.log('list of files', res2);
return true;
}).catch(async err => {
console.log(err,'Error creating directory');
console.log(folderPath);
return false;
});
}