@tauri-apps/plugin-fs 2.7.1 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,7 +12,7 @@ Access the file system.
12
12
 
13
13
  ## Install
14
14
 
15
- _This plugin requires a Rust version of at least **1.90**_
15
+ _This plugin requires a Rust version of at least **1.94**_
16
16
 
17
17
  There are three general methods of installation that we can recommend.
18
18
 
package/dist-js/index.cjs CHANGED
@@ -297,7 +297,7 @@ class FileHandle extends core.Resource {
297
297
  *
298
298
  * @example
299
299
  * ```typescript
300
- * import { open, write, BaseDirectory } from '@tauri-apps/plugin-fs';
300
+ * import { open, BaseDirectory } from '@tauri-apps/plugin-fs';
301
301
  * const encoder = new TextEncoder();
302
302
  * const data = encoder.encode("Hello world");
303
303
  * const file = await open("bar.txt", { write: true, baseDir: BaseDirectory.AppLocalData });
@@ -610,7 +610,7 @@ async function remove(path, options) {
610
610
  * @example
611
611
  * ```typescript
612
612
  * import { rename, BaseDirectory } from '@tauri-apps/plugin-fs';
613
- * await rename('avatar.png', 'deleted.png', { oldPathBaseDir: BaseDirectory.App, newPathBaseDir: BaseDirectory.AppLocalData });
613
+ * await rename('avatar.png', 'deleted.png', { oldPathBaseDir: BaseDirectory.AppData, newPathBaseDir: BaseDirectory.AppLocalData });
614
614
  * ```
615
615
  *
616
616
  * @param oldPath The path of the file or directory to rename.
@@ -350,7 +350,7 @@ declare class FileHandle extends Resource {
350
350
  *
351
351
  * @example
352
352
  * ```typescript
353
- * import { open, write, BaseDirectory } from '@tauri-apps/plugin-fs';
353
+ * import { open, BaseDirectory } from '@tauri-apps/plugin-fs';
354
354
  * const encoder = new TextEncoder();
355
355
  * const data = encoder.encode("Hello world");
356
356
  * const file = await open("bar.txt", { write: true, baseDir: BaseDirectory.AppLocalData });
@@ -676,7 +676,7 @@ interface RenameOptions {
676
676
  * @example
677
677
  * ```typescript
678
678
  * import { rename, BaseDirectory } from '@tauri-apps/plugin-fs';
679
- * await rename('avatar.png', 'deleted.png', { oldPathBaseDir: BaseDirectory.App, newPathBaseDir: BaseDirectory.AppLocalData });
679
+ * await rename('avatar.png', 'deleted.png', { oldPathBaseDir: BaseDirectory.AppData, newPathBaseDir: BaseDirectory.AppLocalData });
680
680
  * ```
681
681
  *
682
682
  * @param oldPath The path of the file or directory to rename.
package/dist-js/index.js CHANGED
@@ -295,7 +295,7 @@ class FileHandle extends Resource {
295
295
  *
296
296
  * @example
297
297
  * ```typescript
298
- * import { open, write, BaseDirectory } from '@tauri-apps/plugin-fs';
298
+ * import { open, BaseDirectory } from '@tauri-apps/plugin-fs';
299
299
  * const encoder = new TextEncoder();
300
300
  * const data = encoder.encode("Hello world");
301
301
  * const file = await open("bar.txt", { write: true, baseDir: BaseDirectory.AppLocalData });
@@ -608,7 +608,7 @@ async function remove(path, options) {
608
608
  * @example
609
609
  * ```typescript
610
610
  * import { rename, BaseDirectory } from '@tauri-apps/plugin-fs';
611
- * await rename('avatar.png', 'deleted.png', { oldPathBaseDir: BaseDirectory.App, newPathBaseDir: BaseDirectory.AppLocalData });
611
+ * await rename('avatar.png', 'deleted.png', { oldPathBaseDir: BaseDirectory.AppData, newPathBaseDir: BaseDirectory.AppLocalData });
612
612
  * ```
613
613
  *
614
614
  * @param oldPath The path of the file or directory to rename.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-fs",
3
- "version": "2.7.1",
3
+ "version": "2.8.0",
4
4
  "description": "Access the file system.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "authors": [
@@ -25,6 +25,6 @@
25
25
  "LICENSE"
26
26
  ],
27
27
  "dependencies": {
28
- "@tauri-apps/api": "^2.12.0"
28
+ "@tauri-apps/api": "^2.13.0"
29
29
  }
30
30
  }