Skip to content

hankychung/node-copy-dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

description

copy the whole directory from here to there

usage

const copyDir = require('@hankychung/node-copy-dir')

copyDir('./somewhere/src', './other/dest').then(() => {
  // the whole `src` directory will be copied to the `dest` directory, if the promise is resolved
}).catch(e => {
  console.log(e)
})

params

example: copyDir(srcPath, destPath, isIncludeRootFolder)

srcPath

type: string

desc: the source directory path

destPath

type: string

desc: the destination path

isIncludeRootFolder

type: boolean

desc: copy with the source directory's root folder or not

default: true

About

🛠 copy the whole directory from here to there,base on node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published