fix(fs): app scopes not properly enabling paths (#1774)

This commit is contained in:
Lucas Fernandes Nogueira
2024-09-13 09:57:46 -03:00
committed by GitHub
parent 009299ebec
commit cc03ccf5e0
36 changed files with 350 additions and 343 deletions
+1 -1
View File
@@ -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