fix(cli): avoid scanning unnecessary directories on windows (#4082)

fixes #4007

Ticket: N8N-4603
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2022-09-12 16:31:49 +02:00
committed by GitHub
parent dd2b55e352
commit 84b56eb48e
4 changed files with 5 additions and 4 deletions

View File

@@ -95,7 +95,7 @@ export class ImportCredentialsCommand extends Command {
inputPath = inputPath.replace(/\/$/g, '');
const files = await glob(`${inputPath}/*.json`);
const files = await glob('*.json', { cwd: inputPath });
totalImported = files.length;

View File

@@ -117,7 +117,7 @@ export class ImportWorkflowsCommand extends Command {
inputPath = inputPath.replace(/\/$/g, '');
const files = await glob(`${inputPath}/*.json`);
const files = await glob('*.json', { cwd: inputPath });
totalImported = files.length;