Skip to content

Commit

Permalink
some modify
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaming743 committed Jul 9, 2019
1 parent 174cc4f commit fa8bc62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ async function copyDir (src, dest) {
}

if (stats.isFile()) {
fs.createReadStream(fullSrc).pipe(fs.createWriteStream(fullTarget))
fs.createReadStream(fullSrc).pipe(fs.createWriteStream(fullDest))
} else if (stats.isDirectory()) {
const isMkdir = await mkDir(fullDest)

Expand Down

0 comments on commit fa8bc62

Please sign in to comment.