Skip to content

Commit

Permalink
fix: separator
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Sep 4, 2023
1 parent e69924c commit 7a73636
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/process/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7a73636

Please sign in to comment.