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

Open
opened 2015-01-15 07:30:59 -08:00 by reggi · 0 comments
reggi commented 2015-01-15 07:30:59 -08:00 (Migrated from github.com)

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?

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?
This repository is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: code/wrench-js#99
No description provided.