capacitor-community / capacitor-community/electron
Capacitor Filesystem
- Dominant language
- TypeScript
- Stars
- 398
- Forks
- 63
- PR merge metrics
- No merged PRs in 30d
Description
I added electron to my capacitor project, I'm having problems with the Filesystem plugin. I downloaded some pdf files and saved with the method
```
let result = await Filesystem.writeFile ({
path: path,
data: fileData,
directory: FilesystemDirectory.Data
})
```
my problem is being able to show them to electron api.
if I try to fetch the uri of the saved file I see it with the Filesystem plugin, but I don't understand where it is saved or how to use it with electron.
```
let result = await Filesystem.getUri ({
path: pathFile,
directory: FilesystemDirectory.Data
});
```
console.log (result.uri) /DATA/example.pdf
Contributor guide
Assessment
This issue has not been assessed yet.