Corey Butler
de1d50dae9
Set isDir to false for non-existant directory
...
The PR for issue #45 resolves problems for `readdirRecursive`, but not for `readdirRecursiveSync`. This patch sets `isDir = false` when a directory cannot be found, effectively ceasing further processing.
2014-03-01 16:27:27 -06:00
Ryan McGrath
e5f08b8c4d
Merge pull request #77 from SamyPesse/patch-1
...
Fix copyDirRecursive error callback
2014-02-10 14:19:24 +08:00
Ryan McGrath
666e0c7e75
Merge pull request #79 from xzyfer/fix/sync-absolute-symlink
...
Fix inflateSymlinks flag errors for absolute symlinks
2014-02-10 14:18:19 +08:00
xzyfer
b0455c99ba
Fix inflateSymlinks flag errors for absolute symlinks
2014-02-10 17:00:38 +11:00
Samy Pessé
b655e26806
Fix copyDirRecursive error callback
2014-02-09 10:32:01 +01:00
Greg Warner
39d89374c0
added preserveTimestamps
2014-01-22 10:08:41 -07:00
Ryan McGrath
ad15e015eb
Merge pull request #67 from Krinkle/patch-1
...
copyDirSyncRecursive: Remove obsolete typeof check
2014-01-17 18:37:10 -08:00
seanmwalker
99106ac738
Remove console.log statements to clean up the code.
2014-01-17 01:33:47 -06:00
seanmwalker
df61c7017f
Updating test for rmdirSyncRecursive to check for files with alternative permissions being removed properly.
2014-01-17 01:28:55 -06:00
seanmwalker
793c61eec0
Updating wrench rmdirSyncRecursive to support permissions issues for windows.
2014-01-17 00:45:26 -06:00
Timo Tijhof
f76a05e874
copyDirSyncRecursive: Remove obsolete typeof check
...
Variable `opts` is never undefined at this point because
of "opts = opts || {};".
2013-11-14 01:44:35 +01:00
Ryan McGrath
5c716f9c0d
Resolve this merge conflict that I somehow 100% totally missed ( fixes #63 )
2013-10-16 07:46:46 +09:00
Ryan McGrath
5cf0de3420
Merges pull request #57 . copyFileSync kept away for the moment, the rest seems rocking.
2013-10-16 07:22:13 +09:00
Ryan McGrath
0f21829511
Point release, adds some stuff from pull request #55
2013-10-16 07:17:56 +09:00
Adam Griffiths
e3a696c40f
Update wrench.js
...
Fixes a bug (not sure if has been reported).
`copyDirRecursive` calls itself from the `rmdirRecursive` callback when newDir exists. It should call itself with the original copyDirRecursive arguments, not the callback arguments.
Also `fun.apply(thisArg, argsArray)` expects argsArray to be an array (see [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply )) but `arguments` is not an array (see [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments ))
2013-08-04 19:12:53 +01:00
Mario Balibrera
be1e0e24ff
fixed getNextLine
2013-08-01 19:42:52 -07:00
Patrick Steele-Idem
5acb4ed037
Added support for include and exclude filters and function filters. Also export copyFileSync method now
2013-07-24 23:45:28 -06:00
Ryan McGrath
31cf44b999
Fix typo, typof, typeof
2013-05-03 17:52:28 -04:00
Ryan McGrath
c8475a199e
Bit of args switching to keep old users in running order
2013-05-03 16:54:06 -04:00
Ryan McGrath
04c8fe0239
Fixes #50 . They're right, this should follow OS default behavior.
2013-05-03 16:48:08 -04:00
Ryan McGrath
f8ed81ad5a
Handles scenarios where lines might not end with a newline at the end of the file. Fixes #49 .
2013-05-03 16:18:16 -04:00
Ryan McGrath
dff761f4e6
Merge pull request #48 from ViciousPotato/callback
...
copyDirRecursive callback receives at least a null error parameter.
2013-05-03 12:44:45 -07:00
Zhou Honglin
e70a63844d
copyDirRecursive callback receives at least a null error parameter. Issue #47 .
2013-01-24 11:46:38 +08:00
tmont
14ed84beb6
removed unused variables
2013-01-18 11:21:45 -08:00
tmont
9dbd7513ac
handle errors to fs.readdir()
2013-01-18 11:21:08 -08:00
Ryan McGrath
d396853ab7
Patch for pull request #44
2012-12-01 01:40:09 -05:00
TehShrike
db84ed7dc1
Switching to path.join instead of concatenation
...
Made path parsing friendlier across platforms
2012-11-30 00:37:26 +00:00
Ryan McGrath
75af1f122b
Version bump
2012-11-16 04:43:20 -05:00
Stig Murberg
5e80ff972c
added null check so copyDirSyncRecursive will work without passing opts
2012-11-15 12:25:11 +01:00
Ryan McGrath
c382a83171
Merge pull request #38 from refaelos/master
...
new options: 'preserveFiles' and 'inflateSymlinks'
2012-11-10 17:32:55 -08:00
Ryan McGrath
2628e88075
Fixes #39
2012-11-09 10:10:15 -05:00
refaelos
fcc6760b11
merged with master repo
2012-11-09 14:18:33 +02:00
refaelos
0b54b60a53
added preserveFiles and inflateSymlinks options and tests
2012-11-09 14:06:54 +02:00
Ryan McGrath
676e210fc4
Fixes issue #32
2012-11-09 05:20:15 -05:00
Ryan McGrath
04d6db164e
Fix for issue #35
2012-11-09 05:14:22 -05:00
Ryan McGrath
6c90fc6e67
Merge in @refaelos excludeHidden && excludeHiddenUnix patch
2012-11-09 05:12:39 -05:00
refaelos
658589c35e
changed excludeHidden to excludeHiddenUnix b/c the testing for hidden file is only applicable for unix
2012-10-15 15:35:43 +02:00
refaelos
c2674863e9
added excludeHidden flag
2012-10-15 14:59:06 +02:00
refaelos
a2cac1647d
not copying hidden files/folders
2012-10-15 14:53:42 +02:00
donaldpipowitch
eb1bf2399b
- added to new properties to opts param in copyDirSyncRecursive:
...
-- opts.filter (RegExp): a RegExp which could look like this: /^CVS$|.idea$|.DS_Store$/. If added, every file or directory which matches the RegExp will be ignored. In this example every "CVS" directory and all ".idea" and ".DS_Stores" files would be ignored.
-- opts.filter (Boolean): If set tu true, the RegExp in opts.filter will be used as a whitelist. Every file or directory which DOESN'T match opts.filter will be ignored.
2012-07-05 10:08:28 +03:00
domenic
01190602da
Use path.relative instead of manual string replacement.
...
Fixes Windows inconsistency (#26 ).
2012-05-14 19:30:53 -04:00
perfectworks
48aa600052
FIX: LineReader.hasNextLine go to an endless loop
...
LineReader.hasNextLine will go to an endless loop when buffer is empty
or file not end with \n
2012-02-22 17:43:31 +08:00
perfectworks
92a4dffb11
FIX: LineReader.hasNextLine go to a endless loop when LineReader.buffer is empty
2012-02-20 22:15:22 +08:00
Ryan McGrath
6110588411
Merge pull request #18 from vgrichina/master
...
Implemented asynchronous recursive readdir
2012-02-18 01:52:26 -08:00
Ryan McGrath
ee67ebfc77
Merge pull request #17 from jannon/master
...
Making copy a little friendlier (allowing existing directories)
2012-02-18 01:51:43 -08:00
Vladimir Grichina
b8ae7be2f7
Added async readdir
2012-02-18 00:35:25 +02:00
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
Rosa Tse
e5a368d67a
Make sure fix for issue #7 works in Windows too (check for backslash in path)
2012-02-06 14:58:46 -05: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