ionic-team / ionic-team/capacitor-filesystem

FileSystem: need support for Apps root directory (parent of /files)

Open
#30 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6
Forks
15
Avg merge
14m
Merged PRs (30d)
1

Description

## Feature Request

### Plugin

- FileSystem

### Description
I need access to the apps root directory. Actually the DATA-directory give access to '/data/user/0/app-id/**files**.
I need access to the parent directory of **files**: '/data/user/0/app-id/'. Because my sqlite database is stored under '/data/user/0/app-id/databases/sqlite.db'. And I would like to export this db.
The cordova-plugin-file uses the code 'context.getFilesDir().getParentFile()' to access this directory.

### Platform(s)

- Android

### Preferred Solution
The cordova-plugin-file uses the code 'context.getFilesDir().getParentFile()' to access this directory.
Add a new enum value 'DATA_ROOT' or change existing 'DATA' to 'DATA_FILES' and use 'DATA' for root access.

### Alternatives
-

### Additional Context
-

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.