Skip to content

Commit

Permalink
Fix copyDirectoryEntriesTo (fixes mpaghq#76) mpaghq#77
Browse files Browse the repository at this point in the history
  • Loading branch information
hmphu committed Jul 21, 2023
1 parent 162d0c9 commit ec11f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fileUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export class FileUtil {
for (let i = 0; i < files.length; i++) {
const file = files[i];
if (ignoreList.includes(file)) 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
Expand Down

0 comments on commit ec11f73

Please sign in to comment.