How to use the copyDirSyncRecursive function from wrench

Find comprehensive JavaScript wrench.copyDirSyncRecursive code examples handpicked from public code repositorys.

25
26
27
28
29
30
31
32
33
34
35
36
proj1


function _beforeEach(done) {
    createDir(tmpDir)


    wrench.copyDirSyncRecursive(repoSrc, tmpReposDir, { forceDelete: true })
    wrench.copyDirSyncRecursive(filesSrc, repoDir, { forceDelete: true })
    repo = fsStore(new Repository(repoDir))
    proj = new Project(repo)
    repo1 = fsStore(new Repository(repo1Dir))
fork icon25
star icon127
watch icon8

+ 15 other calls in file

84
85
86
87
88
89
90
91
92
93
try {
  if (fs.existsSync(tmpDir)) {
    wrench.rmdirSyncRecursive(tmpDir)
  }
  wrench.mkdirSyncRecursive(tmpDir)
  wrench.copyDirSyncRecursive(testFilesDir, tmpDir, { forceDelete: true })
  done()
} catch (e) {
  return done(e)
}
fork icon25
star icon127
watch icon0

+ 5 other calls in file