From 7a73636ca374e735c7768ce85b79cd5f7ee2452d Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Tue, 5 Sep 2023 01:35:53 +0200 Subject: [PATCH] fix: separator --- packages/process/src/utils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/process/src/utils.ts b/packages/process/src/utils.ts index 409fe71..deb55f2 100644 --- a/packages/process/src/utils.ts +++ b/packages/process/src/utils.ts @@ -12,9 +12,11 @@ export function get_all_files(path: string): string[] { const files = []; for (const file of readdirSync(path)) { - const fullPath = join(path, file); + const fullPath = path + posix_sep + file; if (lstatSync(fullPath).isDirectory()) { - get_all_files(fullPath).forEach((x) => files.push(join(file, x))); + get_all_files(fullPath).forEach((x) => + files.push(file + posix_sep + x), + ); } else { files.push(file); }