52 Commits

Author SHA1 Message Date
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
JP Richardson
4286f2b420 Added readTextFile methods. Deprecated touch/touchSync methods. 2013-01-28 02:38:41 -06:00
JP Richardson
f2270ee539 Renamed touch to createFile. 2013-01-28 02:12:58 -06:00
JP Richardson
1415064bb5 Working outputFile / outputFileSync. Tests passing. 2013-01-28 02:07:10 -06:00
JP Richardson
5f9edf87d7 Delete old file. 2013-01-28 01:42:27 -06:00
JP Richardson
4e57a14644 Added touch/touchSync methods. 2012-11-02 10:53:37 -05:00
JP Richardson
ede0f52a3f Fixed some stray globals. Closes #12 2012-10-11 13:31:01 -05:00
JP Richardson
8aa7c13d1b Renamed mkdir to mkdirp/mkdirs. 2012-10-09 23:35:13 -05:00
JP Richardson
c600af170b Update 2012-09-10 16:04:59 -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
598865877d Added readJSONFile method. 2012-08-13 01:17:43 -05:00
JP Richardson
b1e6c3d044 Fixed deleteSync bug. Verified Node v0.8 compatibility. 2012-07-18 20:59:41 -05:00
JP Richardson
8624dbd20a Fixed remove/delete undefined callback bug. 2012-06-15 11:17:37 -05:00
JP Richardson
699dbbed95 0.1.0 released. 2012-05-31 11:12:52 -05:00
JP Richardson
5508e8c1ef Added mkdir() 2012-05-31 09:52:33 -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
JP Richardson
ec64f4397e Implemented and tested rmrf. 2012-01-11 10:02:18 -06:00