Hello guys,
I have a problem with the Filesystem capacitor plugin which tells me that the accessible folder with the variable: “FilesystemDirectory.Documents” does not exist.
I cannot find a solution to access the folder, and the contents of it are needed to continue my development.
Here an example of code :
try {
const firmwareEntry = await Filesystem.readdir({ directory: FilesystemDirectory.Documents, path: 'assets' });
this.availableFirmware = firmwareEntry.files;
} catch (error) {
throw new FileError(FileErrorEnum.CANT_CHECK_FIRMWARE_DIRECTORY, error);
}
My ionic-info :
Ionic:
Ionic CLI : 6.13.1
Ionic Framework : @ionic/angular 5.5.4
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3
Capacitor:
Capacitor CLI : 2.4.2
@capacitor/core : 2.4.2
Utility:
cordova-res : 0.15.3
native-run : 1.3.0
System:
NodeJS : v14.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.14.9
OS : Windows 10
Thank you for taking the time to read me