tauri-apps / tauri-apps/plugins-workspace

Android forbidden path with @tauri-apps/plugin-fs create()

Open
#1,914 2 comments 1 reaction 0 assignees View on GitHub
platform: android plugin: fs type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

[@tauri-apps/plugin-fs create()]
**Error: Uncaught (in promise) forbidden path: /storage/emulated/0/Android/data/com.flomesh.ztm/files/Documents/Readme.txt**
"/storage/emulated/0/Android/data/com.flomesh.ztm/" is my app private directory.

And the relevant read and write permissions have been applied for
```



```
And I set up capabilities:
```
"permissions": [
...
{
"identifier": "fs:scope",
"allow": [
{ "path": "$APPDATA" },
{ "path": "$APPDATA/**" },
{ "path": "$HOME" },
{ "path": "$HOME/**" }
]
},
"fs:allow-create",
"fs:allow-home-write",
...
]

```
**Also no permission under Android, but iOS / macOS can work normally.**
So I think it might be a bug

tauri-plugin-fs = "=2.0.1"

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.