Commit graph

17 commits

Author SHA1 Message Date
Jannon
83b721a579 Make copy friendlier with option not to blow away existing dirs
Let's play nice.  Now when using copyDirSyncRecursive, you can pass an optional opts object.  If this object contains a preserve member, then the function will preserve exisiting directories and only overwrite existing files within the directories.  Without passing the option it behaves the same as always
2012-02-10 16:16:08 -08:00
Mark Ledford
29773a3363 Replaced a few more statSync references with lstatSync to ensure symbolic links to directories aren't detected as directories which causes errors. Also in copyDirSyncRecursive removed an explict call to mkDirSync before recusively calling to copy the sub directory as the recursive method is already creating that directory. The explicit call to create the sub directory beforehand is causing the directory to be created twice causing an error. 2012-01-16 19:34:42 -05:00
Mark Ledford
7edb49884d Update lib/wrench.js 2012-01-16 16:37:27 -05:00
millermedeiros
139ed486f1 add readdirSyncRecursive and the test runner file. 2012-01-14 14:10:47 -02:00
millermedeiros
29cb04590b normalize tabs 2012-01-14 13:05:01 -02:00
Ryan McGrath
5a6372fe46 Updated readme, version, code style 2012-01-13 09:55:49 -05:00
Dave Geddes
9bda890fe0 removed redundant variable 2012-01-10 12:41:04 -07:00
Dave Geddes
7157760c12 added failSilent option to wrench.rmdirSyncRecursive
for cases where you want to delete a directory that may or may not
exist:
wrench.rmdirSyncRecursive('dir', true);
2012-01-10 12:38:39 -07:00
David Schoen
3d70d7cecf fixing formatting for mkdirSyncRecursive 2011-10-23 15:48:50 +08:00
David Schoen
34de06b73d importing nherment's patch for issue #7 2011-10-23 15:48:43 +08:00
Ryan McGrath
403deea04c Version bump, docs updated with example of chownSyncRecursive 2011-10-11 02:00:04 +09:00
Rob Evans
f1378ae135 Added recursive sync chown method "chownSyncRecursive" 2011-10-10 16:38:11 +02:00
Ryan McGrath
5476c463c8 A LineReader, because this kind of stuff should just exist already. ;P 2011-09-19 00:13:16 -04:00
defrex
5b71715d88 bug fixing 2011-04-28 18:42:02 -04:00
defrex
e9991ed62c added copyDirRecursive and rmdirRecursive 2011-04-28 14:58:09 -04:00
Ryan McGrath
445a2836f4 Resolves issue #2, thanks to a heads up from jakobmattsson that these lines never got removed 2011-04-11 01:28:16 +09:00
Ryan McGrath
7b010b483d Updated to match NPM/CommonJS format, distributed through NPM now, removed useless import, magically still works in newer versions of Node. ;D 2010-10-22 12:36:29 -04:00
Renamed from wrench.js (Browse further)