JP Richardson
1717b03b57
test/copy-sync.test: moved tests from copy.test.js
2014-11-04 10:51:47 -06:00
JP Richardson
128c09801a
test/copy.test: removed semicolons
2014-11-04 10:47:29 -06:00
JP Richardson
903d4018e2
test/copy.test: removed path-extra dep
2014-10-29 14:17:11 -05:00
JP Richardson
12570c79e2
test/lib/util: created
2014-10-26 05:34:39 -05:00
JP Richardson
bbf20d7f1e
package: added terst (since it was removed from testutil)
2014-10-26 05:06:31 -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
23050cec1d
ncp was return an array of errors, now it returns an error. Closes #58
2014-05-22 18:27:45 -05:00
JP Richardson
5815d6ddcd
add regression test to pending state. See avianflu/ncp #38
2014-05-22 16:12:28 -05:00
JP Richardson
a3e775c775
added copy tests that verify that permsions aren't being set properly on the copied files and directories
2014-04-01 15:40:51 -05: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
JP Richardson
93237ddc5a
added test for copy() when source dir() does not exist.
2013-12-30 10:28:13 -06:00
Uli Köhler
46acb17aa6
Added regression test for copy() return callback on error
2013-10-23 17:35:05 +02:00
Srirangan
a59cfea292
filter is optional for fs.copy()
2013-10-14 15:42:24 +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
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
824f7271e9
reformatted copy() tests
2013-10-07 09:20:07 -05:00
JP Richardson
98ce3b08f5
Changed creation of testing diretories so the /tmp dir is not littered.
2013-01-28 02:19:21 -06:00
JP Richardson
923085a95a
Removed CoffeeScript tests.
2012-10-09 23:31:50 -05:00