From e80369d63dd516f1f9cb217db20fa8f347122eee Mon Sep 17 00:00:00 2001 From: Phu Hoang Date: Fri, 4 Aug 2023 14:28:10 +0700 Subject: [PATCH] Fix copyDirectoryEntriesTo (fixes #76) #77 --- src/fileUtil.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fileUtil.ts b/src/fileUtil.ts index 705c6a83..04f96e82 100644 --- a/src/fileUtil.ts +++ b/src/fileUtil.ts @@ -73,8 +73,8 @@ export class FileUtil { for (let i = 0; i < files.length; i++) { const file = files[i]; if (ignoreList.includes(file.name)) continue; - const sourcePath = sourceDir.path + "/" + file; - const destPath = destinationDir.path + "/" + file; + const sourcePath = sourceDir.path + "/" + file.name; + const destPath = destinationDir.path + "/" + file.name; const source = { ...sourceDir, path: sourcePath }; const destination = { ...destinationDir, path: destPath }; if (await FileUtil.directoryExists(source.directory, source.path)) { // is directory