69 Commits

Author SHA1 Message Date
JP Richardson
c746c70a1b fs-extra: graceful-fs is now a dependency 2015-01-21 05:24:26 -06:00
JP Richardson
f1b5ffabd1 lib/_copy: modern node.js, io.js only 2015-01-21 05:09:17 -06:00
JP Richardson
4d441fb973 lib/_copy: moved exports to bottom 2015-01-21 05:07:17 -06:00
JP Richardson
0aec5f2df1 lib/_copy: removed semicolons 2015-01-21 05:04:57 -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
JP Richardson
116a72ac55 fs-extra: removed mkdirp dependency 2014-12-10 15:07:47 -06:00
JP Richardson
2038bed25b lib/mkdir: mkdirs should now be "--use_strict" safe (converted deprecated octal to parseInt) 2014-12-10 15:03:19 -06:00
JP Richardson
da67627813 lib/mkdir: renamed internal functions 2014-12-10 15:00:12 -06:00
JP Richardson
dd6d4605d4 lib/mkdir: 4 space to 2 2014-12-10 14:57:46 -06:00
JP Richardson
943444fbeb lib/mkdirs: removed semicolons 2014-12-10 14:57:15 -06:00
JP Richardson
3cedd37939 lib/mkdir: imported substack/mkdirp 2014-12-10 14:55:06 -06:00
JP Richardson
8c158f933e lib/index: changed mkdirs alias 2014-12-10 14:54:31 -06: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
JP Richardson
febc8b72f5 create: clean up 2014-10-24 05:20:31 -05:00
JP Richardson
f256a8551d index: cleaned up / removed deprecated touch/touchSync methods 2014-10-23 08:15:03 -05:00
JP Richardson
85c99195ca ensure: removed (unused) 2014-10-22 10:06:03 -05:00
JP Richardson
3869004c37 json: cleanup 2014-10-22 10:04:18 -05:00
JP Richardson
44d75a3a1c mkdir: cleanup 2014-10-22 09:59:48 -05:00
JP Richardson
0f39aa911b move: cleanup 2014-10-22 09:58:32 -05:00
JP Richardson
2256ec4992 output: cleanup 2014-09-23 12:54:17 -05:00
JP Richardson
36161fd6ef remove: OCD 2014-09-22 09:25:55 -05:00
JP Richardson
f8e328837e remove: cleanup 2014-09-22 09:25:10 -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
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
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
0f1fd748fb added outputJson()/outputJsonSync(), closes #23 2013-05-14 11:03:30 -05:00
JP Richardson
30140e060f modified for strict mode 2013-05-14 10:37:07 -05:00
JP Richardson
05c93f70fc Optional graceful-fs dep. Closes #17 2013-03-18 11:50:57 -05:00
JP Richardson
edc26922f2 Added new test. 2013-03-18 11:43:56 -05:00
JP Richardson
ed7fe84cb8 Dropped node 0.6 support, added 0.10 support. 2013-03-18 10:05:18 -05:00
JP Richardson
2e8db7abe7 Removed readTextFile. Shortened JSON methods. 2013-02-03 13:23:57 -06:00