@tauri-apps/plugin-fs
Advanced tools
Comparing version 2.0.0-beta.5 to 2.0.0-beta.6
@@ -15,3 +15,3 @@ /** | ||
* For instance, this scope configuration only allows accessing files on the | ||
* *databases* folder of the {@link https://beta.tauri.app/2/reference/js/core/namespacepath/#appdatadir | `$APPDATA` directory}: | ||
* *databases* folder of the {@link https://v2.tauri.app/reference/javascript/api/namespacepath/#appdatadir | `$APPDATA` directory}: | ||
* ```json | ||
@@ -27,28 +27,28 @@ * { | ||
* | ||
* Notice the use of the `$APPDATA` variable. The value is injected at runtime, resolving to the {@link https://beta.tauri.app/2/reference/js/core/namespacepath/#appdatadir | app data directory}. | ||
* Notice the use of the `$APPDATA` variable. The value is injected at runtime, resolving to the {@link https://v2.tauri.app/reference/javascript/api/namespacepath/#appdatadir | app data directory}. | ||
* | ||
* The available variables are: | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appconfigdir | $APPCONFIG}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appdatadir | $APPDATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appLocaldatadir | $APPLOCALDATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appcachedir | $APPCACHE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#applogdir | $APPLOG}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#audiodir | $AUDIO}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#cachedir | $CACHE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#configdir | $CONFIG}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#datadir | $DATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#localdatadir | $LOCALDATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#desktopdir | $DESKTOP}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#documentdir | $DOCUMENT}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#downloaddir | $DOWNLOAD}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#executabledir | $EXE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#fontdir | $FONT}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#homedir | $HOME}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#picturedir | $PICTURE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#publicdir | $PUBLIC}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#runtimedir | $RUNTIME}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#templatedir | $TEMPLATE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#videodir | $VIDEO}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#resourcedir | $RESOURCE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#tempdir | $TEMP}. | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appconfigdir | $APPCONFIG}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appdatadir | $APPDATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appLocaldatadir | $APPLOCALDATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appcachedir | $APPCACHE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#applogdir | $APPLOG}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#audiodir | $AUDIO}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#cachedir | $CACHE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#configdir | $CONFIG}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#datadir | $DATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#localdatadir | $LOCALDATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#desktopdir | $DESKTOP}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#documentdir | $DOCUMENT}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#downloaddir | $DOWNLOAD}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#executabledir | $EXE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#fontdir | $FONT}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#homedir | $HOME}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#picturedir | $PICTURE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#publicdir | $PUBLIC}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#runtimedir | $RUNTIME}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#templatedir | $TEMPLATE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#videodir | $VIDEO}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#resourcedir | $RESOURCE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#tempdir | $TEMP}. | ||
* | ||
@@ -488,2 +488,3 @@ * Trying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access. | ||
* import { readDir, BaseDirectory } from '@tauri-apps/plugin-fs'; | ||
* import { join } from '@tauri-apps/api/path'; | ||
* const dir = "users" | ||
@@ -496,3 +497,3 @@ * const entries = await readDir('users', { baseDir: BaseDirectory.App }); | ||
* if (entry.isDirectory) { | ||
* const dir = parent + entry.name; | ||
* const dir = await join(parent, entry.name); | ||
* processEntriesRecursive(dir, await readDir(dir, { baseDir: BaseDirectory.App })) | ||
@@ -499,0 +500,0 @@ * } |
@@ -21,3 +21,3 @@ export { BaseDirectory } from '@tauri-apps/api/path'; | ||
* For instance, this scope configuration only allows accessing files on the | ||
* *databases* folder of the {@link https://beta.tauri.app/2/reference/js/core/namespacepath/#appdatadir | `$APPDATA` directory}: | ||
* *databases* folder of the {@link https://v2.tauri.app/reference/javascript/api/namespacepath/#appdatadir | `$APPDATA` directory}: | ||
* ```json | ||
@@ -33,28 +33,28 @@ * { | ||
* | ||
* Notice the use of the `$APPDATA` variable. The value is injected at runtime, resolving to the {@link https://beta.tauri.app/2/reference/js/core/namespacepath/#appdatadir | app data directory}. | ||
* Notice the use of the `$APPDATA` variable. The value is injected at runtime, resolving to the {@link https://v2.tauri.app/reference/javascript/api/namespacepath/#appdatadir | app data directory}. | ||
* | ||
* The available variables are: | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appconfigdir | $APPCONFIG}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appdatadir | $APPDATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appLocaldatadir | $APPLOCALDATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#appcachedir | $APPCACHE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#applogdir | $APPLOG}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#audiodir | $AUDIO}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#cachedir | $CACHE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#configdir | $CONFIG}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#datadir | $DATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#localdatadir | $LOCALDATA}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#desktopdir | $DESKTOP}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#documentdir | $DOCUMENT}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#downloaddir | $DOWNLOAD}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#executabledir | $EXE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#fontdir | $FONT}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#homedir | $HOME}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#picturedir | $PICTURE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#publicdir | $PUBLIC}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#runtimedir | $RUNTIME}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#templatedir | $TEMPLATE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#videodir | $VIDEO}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#resourcedir | $RESOURCE}, | ||
* {@linkcode https://beta.tauri.app/2/reference/js/core/namespacepath/#tempdir | $TEMP}. | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appconfigdir | $APPCONFIG}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appdatadir | $APPDATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appLocaldatadir | $APPLOCALDATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#appcachedir | $APPCACHE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#applogdir | $APPLOG}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#audiodir | $AUDIO}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#cachedir | $CACHE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#configdir | $CONFIG}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#datadir | $DATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#localdatadir | $LOCALDATA}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#desktopdir | $DESKTOP}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#documentdir | $DOCUMENT}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#downloaddir | $DOWNLOAD}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#executabledir | $EXE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#fontdir | $FONT}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#homedir | $HOME}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#picturedir | $PICTURE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#publicdir | $PUBLIC}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#runtimedir | $RUNTIME}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#templatedir | $TEMPLATE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#videodir | $VIDEO}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#resourcedir | $RESOURCE}, | ||
* {@linkcode https://v2.tauri.app/reference/javascript/api/namespacepath/#tempdir | $TEMP}. | ||
* | ||
@@ -348,2 +348,3 @@ * Trying to execute any API with a URL not configured on the scope results in a promise rejection due to denied access. | ||
* import { readDir, BaseDirectory } from '@tauri-apps/plugin-fs'; | ||
* import { join } from '@tauri-apps/api/path'; | ||
* const dir = "users" | ||
@@ -356,3 +357,3 @@ * const entries = await readDir('users', { baseDir: BaseDirectory.App }); | ||
* if (entry.isDirectory) { | ||
* const dir = parent + entry.name; | ||
* const dir = await join(parent, entry.name); | ||
* processEntriesRecursive(dir, await readDir(dir, { baseDir: BaseDirectory.App })) | ||
@@ -452,3 +453,2 @@ * } | ||
return { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
value: done ? "" : line, | ||
@@ -455,0 +455,0 @@ done, |
{ | ||
"name": "@tauri-apps/plugin-fs", | ||
"version": "2.0.0-beta.5", | ||
"version": "2.0.0-beta.6", | ||
"description": "Access the file system.", | ||
@@ -24,3 +24,3 @@ "license": "MIT or APACHE-2.0", | ||
"dependencies": { | ||
"@tauri-apps/api": "2.0.0-beta.13" | ||
"@tauri-apps/api": "2.0.0-beta.14" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84478
2251
+ Added@tauri-apps/api@2.0.0-beta.14(transitive)
- Removed@tauri-apps/api@2.0.0-beta.13(transitive)