new features in copyDirRecursive #55

Closed
refaelos wants to merge 7 commits from master into master
refaelos commented 2013-05-22 00:46:29 -07:00 (Migrated from github.com)

Fixed an issue with error handling in 'rmdirRecursive'

changed the way copyDirRecursive works.

  • paths needed to be normalized
  • using 'preserve' instead of 'forceDelete'. it makes more sense to let users decide if they want to keep the existing folders/subfolders then to ask them if they want to 'forceDelete' the old ones. The default operation will be to keep existing folders.
  • added (and fixed) 'inflateSymLinks'. It's a new option that allows users do decide if they want to copy symlinks from original folder as new folders or just copy the symlink.
  • added 'excludeHiddenUnix' to let users exclude hidden files during copy (only on Unix).
Fixed an issue with error handling in 'rmdirRecursive' changed the way copyDirRecursive works. - paths needed to be normalized - using 'preserve' instead of 'forceDelete'. it makes more sense to let users decide if they want to keep the existing folders/subfolders then to ask them if they want to 'forceDelete' the old ones. The default operation will be to keep existing folders. - added (and fixed) 'inflateSymLinks'. It's a new option that allows users do decide if they want to copy symlinks from original folder as new folders or just copy the symlink. - added 'excludeHiddenUnix' to let users exclude hidden files during copy (only on Unix).
ryanmcgrath commented 2013-06-16 15:52:59 -07:00 (Migrated from github.com)

Mmm, the behavior of forceDelete is the way I think I want this library to stay, as it's what people seemed to be largely expecting (and then were getting subsequently confused by) when they used the library. The way you're doing it is akin to what we had before.

I'm confused by what you mean when you say you "added" inflateHiddenSymlinks and excludeHiddenUnix - those already existed in the library. Did you mean to say you fixed them...?

Mmm, the behavior of `forceDelete` is the way I think I want this library to stay, as it's what people seemed to be largely expecting (and then were getting subsequently confused by) when they used the library. The way you're doing it is akin to what we had before. I'm confused by what you mean when you say you "added" `inflateHiddenSymlinks` and `excludeHiddenUnix` - those already existed in the library. Did you mean to say you fixed them...?
refaelos commented 2013-06-17 00:07:21 -07:00 (Migrated from github.com)

Ok. I'll fix what i did.

About inflateHiddenSymlinks and excludeHiddenUnix: Those were in the 'sync' version of the function but not in this one.

Ok. I'll fix what i did. About inflateHiddenSymlinks and excludeHiddenUnix: Those were in the 'sync' version of the function but not in this one.
simonlevasseur commented 2013-08-08 08:49:03 -07:00 (Migrated from github.com)

Can the documentation be updated for the forceDelete -> preserve change?

Can the documentation be updated for the forceDelete -> preserve change?
ryanmcgrath commented 2013-10-15 15:18:33 -07:00 (Migrated from github.com)

I borrowed a few things from this, but basically ended up cherry picking from a few different pull requests. 5 months late, but thanks yo.

I borrowed a few things from this, but basically ended up cherry picking from a few different pull requests. 5 months late, but thanks yo.
This repository is archived. You cannot comment on pull requests.
No reviewers
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#55
No description provided.