68 Commits

Author SHA1 Message Date
JP Richardson
f74ff00a9c test/copy-sync: cleaned up 2014-11-04 12:13:15 -06:00
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
d7648b2634 test/create.test: removed terst for assert 2014-11-03 11:39:13 -06:00
JP Richardson
923d73ee86 test/create.test: refactored 2014-11-03 11:36:42 -06:00
JP Richardson
63873bfc3d test/ensure.test: removed terst for assert 2014-11-02 12:24:17 -06:00
JP Richardson
1dc030be70 test/create.test: remove semicolons 2014-11-01 21:20:33 -05:00
JP Richardson
e9a6e94b80 test/ensure.test: remove semicolons 2014-11-01 21:19:50 -05:00
JP Richardson
ef99803872 test/fs-integration: dropped terst for assert 2014-10-30 10:10:50 -05:00
JP Richardson
d28e93950b test/fs-integration.test: refactored 2014-10-30 10:09:55 -05:00
JP Richardson
22195faabf test/json.test: removed terst for assert 2014-10-29 14:22:33 -05:00
JP Richardson
33fc3537db test/json.test: refactored 2014-10-29 14:20:16 -05:00
JP Richardson
903d4018e2 test/copy.test: removed path-extra dep 2014-10-29 14:17:11 -05:00
JP Richardson
0d5c4f9ddb test/mkdir.test: dropped terst for assert 2014-10-29 14:07:08 -05:00
JP Richardson
3e8ab1f36b test/mkdir.test: refactored 2014-10-29 14:05:23 -05:00
JP Richardson
babf14c7ca test/mkdir.test: removed semicolons 2014-10-29 14:02:19 -05:00
JP Richardson
7c2950ad3f test/output.test: dropped terst for assert 2014-10-29 11:19:37 -05:00
JP Richardson
f8d83d18aa test/output.test: refactored a bit 2014-10-29 11:17:05 -05:00
JP Richardson
98de2614df test/output.test: removed semicolons 2014-10-29 11:14:15 -05:00
JP Richardson
069a236ff7 test/read.test: changed DIR to TEST_DIR 2014-10-27 05:54:22 -05:00
JP Richardson
814da291ad test/read.test: cleaned up; changed terst to assert 2014-10-27 05:53:31 -05:00
JP Richardson
7f269467ef test/read.test: removed semicolons 2014-10-27 05:49:04 -05:00
JP Richardson
c9b70097b0 test/remove.test: removed unused imports 2014-10-27 05:48:53 -05:00
JP Richardson
12570c79e2 test/lib/util: created 2014-10-26 05:34:39 -05:00
JP Richardson
8fcd564c8e test/remove.test: cleanup. Also switch from terst to assert 2014-10-26 05:27:40 -05:00
JP Richardson
93e80999ed test/remove.test: removed semicolons 2014-10-26 05:09:03 -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
648ce83558 changed move() defaults 2014-05-22 18:19:34 -05:00
JP Richardson
891c27c6ee added method move 2014-05-22 18:09:00 -05:00
JP Richardson
82b0dea30b add ensureDir, Closing #31 2014-05-22 16:57:58 -05:00
JP Richardson
d8084fa98c added tests for ensureSync() 2014-05-22 16:48:55 -05:00
JP Richardson
4376d81302 added method ensureFile() and ensureFileSync() 2014-05-22 16:44:24 -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
0f1fd748fb added outputJson()/outputJsonSync(), closes #23 2013-05-14 11:03:30 -05:00
JP Richardson
edc26922f2 Added new test. 2013-03-18 11:43:56 -05:00
JP Richardson
2e8db7abe7 Removed readTextFile. Shortened JSON methods. 2013-02-03 13:23:57 -06:00