You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/fs/guest-js/index.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1323,7 +1323,9 @@ async function watchImmediate(
1323
1323
}
1324
1324
1325
1325
/**
1326
-
* Get the size of a file or directory.
1326
+
* Get the size of a file or directory. For files, the `stat` functions can be used as well.
1327
+
*
1328
+
* If `path` is a directory, this function will recursively iterate over every file and every directory inside of `path` and therefore will be very time consuming if used on larger directories.
1327
1329
* @example
1328
1330
* ```typescript
1329
1331
* import { size, BaseDirectory } from '@tauri-apps/plugin-fs';
@@ -1332,7 +1334,7 @@ async function watchImmediate(
0 commit comments