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