29 Commits

Author SHA1 Message Date
JP Richardson
6b57dcb752 JavaScript Standard Style 2015-04-03 04:44:00 -05:00
JP Richardson
a592001b63 lib/copy: added clobber to copyFileSync() 2015-03-19 12:02:18 -05:00
JP Richardson
02d6e840ee lib/copy: JavaScript Standard Code Style 2015-03-19 10:42:59 -05:00
JP Richardson
c746c70a1b fs-extra: graceful-fs is now a dependency 2015-01-21 05:24:26 -06:00
JP Richardson
f632decd11 fs-extra: dropped ncp 2015-01-21 05:00:33 -06:00
JP Richardson
def1ebe489 lib/copy: changed copySync signature to match copy 2015-01-05 15:27:26 -06:00
overlookmotel
7ae5f03a78 copy: options object or filter to pass to ncp 2015-01-04 16:55:30 +00:00
yibuyisheng
1a716652ad fix fs.exists bug 2014-11-29 13:11:48 +08:00
yibuyisheng
1d22dd1902 delete some useless spaces and use path.join 2014-11-29 11:54:32 +08:00
JP Richardson
284dab90e3 copy: cleanup 2014-10-25 09:24:30 -05:00
JP Richardson
a96d6c82a0 copy: removed semicolons 2014-10-25 09:15:34 -05:00
Sylvain Cleymans
e1c305699e Added symlinks copy in copySync 2014-09-17 15:53:23 -07:00
Sylvain Cleymans
9e397e269c Preserve file mode in copySync 2014-08-28 10:01:13 -07:00
JP Richardson
f6f21fae25 minor spacing cleanup 2014-04-01 09:38:05 -05:00
Michael Tiller
4eaf19874c This fixes (what I think) is a bug in copySync
The issue is that copySync applies the filter **only** at the root level of a recursive
copy.  This adds a test (that failed with the original code) that checks to make sure that
the filter is applied recursively.  The patch to lib/copy.js then addresses this issue
with a simple fix and the tests pass again with the patch.
2014-02-26 16:09:57 -05:00
Uli Köhler
e10b89ff2e Return err in copy() fstat cb, because stat could be undefined or null 2013-10-22 02:29:19 +02:00
Srirangan
a59cfea292 filter is optional for fs.copy() 2013-10-14 15:42:24 +02:00
Srirangan
326e2931ee merge 0.7.1 2013-10-13 21:56:38 +02:00
Srirangan
b169e957e8 filter parameter fs.copy and fs.copySync
`filter` can be a function or a regular expression

for filter:function, `filter(src)` must be true for copy
for filter:RegExp, `filter.test(src)` must be true for copy
2013-10-13 21:50:57 +02:00
JP Richardson
f2c371d131 copy.js cleanup 2013-10-12 16:08:13 -05:00
Srirangan
83226a3695 copySync 2013-10-12 14:14:40 +02:00
JP Richardson
46120d3baf when copying a directory, if the destination dir does not exists, it's created 2013-10-07 14:04:27 -05:00
JP Richardson
d9a60558c9 copy now works if destination directory does not exist when copying file 2013-10-07 13:47:31 -05:00
JP Richardson
30140e060f modified for strict mode 2013-05-14 10:37:07 -05:00
JP Richardson
ede0f52a3f Fixed some stray globals. Closes #12 2012-10-11 13:31:01 -05:00
JP Richardson
179033d0fa Rewrote main module in JavaScript. Added Travis-CI. Added jsonfile dependence. 2012-09-10 15:58:08 -05:00
JP Richardson
8624dbd20a Fixed remove/delete undefined callback bug. 2012-06-15 11:17:37 -05:00
JP Richardson
f7b525785a Renamed copy and remove methods. 2012-05-30 16:14:33 -05:00
JP Richardson
78233a8980 Removed CoffeeScript dependency. 2012-03-14 16:13:37 -05:00