capacitor-community / capacitor-community/electron

Accessing the filesystem

Open
#141 12 comments 4 reactions 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
398
Forks
63
PR merge metrics
No merged PRs in 30d

Description

What's the recommended approach for an Ionic+Capacitor app to access the filesystem via Electron?

There's a couple of options:

1. Ionic's File plugin: https://ionicframework.com/docs/native/file
2. Capacitor's Filesystem plugin: https://capacitorjs.com/docs/apis/filesystem

But none of them allow me to access for example my home directory `~`.

With pure Electron I can just use `fs` but that's not an option here as I'd like it to work with Android as well.

A recommended approach and perhaps a code example would be really appreciated as the current docs are only focused on iOS and Android for these plugins.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.