Skip to content
This repository has been archived by the owner on Jun 19, 2019. It is now read-only.

Can't get excludeHiddenUnix or exclude to work with copyDirRecursive #99

Open
reggi opened this issue Jan 15, 2015 · 0 comments
Open

Can't get excludeHiddenUnix or exclude to work with copyDirRecursive #99

reggi opened this issue Jan 15, 2015 · 0 comments

Comments

@reggi
Copy link

reggi commented Jan 15, 2015

There's an npm repo I'm trying to copy recursively. I'm trying not to copy hidden unix files like .git and .gitignore and I also want to exclude a build and cache directory. For some reason I can't get any of these options to work.

This still includes hidden files

wrench.copyDirRecursive(appDir, buildDir, {
  excludeHiddenUnix: true,
  forceDelete: true,
}, function(){
  console.log(arguments)
})

As for exclude I've tried

wrench.copyDirRecursive(appDir, buildDir, {
  excludeHiddenUnix: true,
  forceDelete: true,
  exclude: /build|cache/
}, function(){
  console.log(arguments)
})

and

wrench.copyDirRecursive(appDir, buildDir, {
  excludeHiddenUnix: true,
  forceDelete: true,
  exclude: function(){
    console.log(arguments)
    return false
  }
}, function(){
  console.log(arguments)
})

these exclude options seam to do nothing.

Thoughts?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant