mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-10 14:13:55 +02:00
fix(fs): app scopes not properly enabling paths (#1774)
This commit is contained in:
committed by
GitHub
parent
009299ebec
commit
cc03ccf5e0
@@ -270,7 +270,7 @@ class FileHandle extends Resource {
|
||||
* @example
|
||||
* ```typescript
|
||||
* import { open, BaseDirectory } from "@tauri-apps/plugin-fs"
|
||||
* // if "$APP/foo/bar.txt" contains the text "hello world":
|
||||
* // if "$APPCONFIG/foo/bar.txt" contains the text "hello world":
|
||||
* const file = await open("foo/bar.txt", { baseDir: BaseDirectory.AppConfig });
|
||||
* const buf = new Uint8Array(100);
|
||||
* const numberOfBytesRead = await file.read(buf); // 11 bytes
|
||||
|
||||
Reference in New Issue
Block a user