Skip to content

Commit 30fa7eb

Browse files
committed
add:upload folder recusively
1 parent 228ad6e commit 30fa7eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

plugin/src/utils/fs.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export async function findMarkdownFilesWithImageFolders(root: string): Promise<U
3131
// folder not exists -> ignore
3232
}
3333
tasks.push({ mdPath, mdContent, images });
34+
} else if (e.isDirectory()) {
35+
const subTasks = await findMarkdownFilesWithImageFolders(path.join(root, e.name));
36+
tasks.push(...subTasks);
3437
}
3538
}
3639
return tasks;

0 commit comments

Comments
 (0)