File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -641,14 +641,15 @@ interface DirEntry {
641
641
* @example
642
642
* ```typescript
643
643
* import { readDir, BaseDirectory } from '@tauri-apps/plugin-fs';
644
+ * import { join } from '@tauri-apps/api/path';
644
645
* const dir = "users"
645
646
* const entries = await readDir('users', { baseDir: BaseDirectory.App });
646
647
* processEntriesRecursive(dir, entries);
647
648
* async function processEntriesRecursive(parent, entries) {
648
649
* for (const entry of entries) {
649
650
* console.log(`Entry: ${entry.name}`);
650
651
* if (entry.isDirectory) {
651
- * const dir = parent + entry.name;
652
+ * const dir = await join( parent, entry.name) ;
652
653
* processEntriesRecursive(dir, await readDir(dir, { baseDir: BaseDirectory.App }))
653
654
* }
654
655
* }
You can’t perform that action at this time.
0 commit comments