Sylvain Cleymans
9e397e269c
Preserve file mode in copySync
10 years ago
JP Richardson
648ce83558
changed move() defaults
11 years ago
JP Richardson
891c27c6ee
added method move
11 years ago
JP Richardson
82b0dea30b
add ensureDir, Closing #31
11 years ago
JP Richardson
d8084fa98c
added tests for ensureSync()
11 years ago
JP Richardson
4376d81302
added method ensureFile() and ensureFileSync()
11 years ago
JP Richardson
f6f21fae25
minor spacing cleanup
11 years ago
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.
11 years ago
Uli Köhler
e10b89ff2e
Return err in copy() fstat cb, because stat could be undefined or null
11 years ago
Srirangan
a59cfea292
`filter` is optional for `fs.copy()`
11 years ago
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
11 years ago
JP Richardson
f2c371d131
copy.js cleanup
11 years ago
Srirangan
83226a3695
copySync
11 years ago
JP Richardson
46120d3baf
when copying a directory, if the destination dir does not exists, it's created
11 years ago
JP Richardson
d9a60558c9
copy now works if destination directory does not exist when copying file
11 years ago
JP Richardson
0f1fd748fb
added `outputJson()/outputJsonSync()`, closes #23
12 years ago
JP Richardson
30140e060f
modified for strict mode
12 years ago
JP Richardson
05c93f70fc
Optional `graceful-fs` dep. Closes #17
12 years ago
JP Richardson
edc26922f2
Added new test.
12 years ago
JP Richardson
ed7fe84cb8
Dropped node 0.6 support, added 0.10 support.
12 years ago
JP Richardson
2e8db7abe7
Removed readTextFile. Shortened JSON methods.
12 years ago
JP Richardson
4286f2b420
Added readTextFile methods. Deprecated touch/touchSync methods.
12 years ago
JP Richardson
f2270ee539
Renamed touch to createFile.
12 years ago
JP Richardson
1415064bb5
Working outputFile / outputFileSync. Tests passing.
12 years ago
JP Richardson
5f9edf87d7
Delete old file.
12 years ago
JP Richardson
4e57a14644
Added touch/touchSync methods.
12 years ago
JP Richardson
ede0f52a3f
Fixed some stray globals. Closes #12
12 years ago
JP Richardson
8aa7c13d1b
Renamed mkdir to mkdirp/mkdirs.
12 years ago
JP Richardson
c600af170b
Update
12 years ago
JP Richardson
179033d0fa
Rewrote main module in JavaScript. Added Travis-CI. Added jsonfile dependence.
12 years ago
JP Richardson
598865877d
Added readJSONFile method.
12 years ago
JP Richardson
b1e6c3d044
Fixed deleteSync bug. Verified Node v0.8 compatibility.
12 years ago
JP Richardson
8624dbd20a
Fixed remove/delete undefined callback bug.
13 years ago
JP Richardson
699dbbed95
0.1.0 released.
13 years ago
JP Richardson
5508e8c1ef
Added mkdir()
13 years ago
JP Richardson
f7b525785a
Renamed copy and remove methods.
13 years ago
JP Richardson
78233a8980
Removed CoffeeScript dependency.
13 years ago
JP Richardson
ec64f4397e
Implemented and tested rmrf.
13 years ago
JP Richardson
0af27e22dc
Added asychronous copyFile method.
13 years ago
JP Richardson
2525503f7a
Initial commit.
13 years ago