Mani Maghsoudlou
d64f8ea453
lib/copy/__tests__/copy-dev-null.test.js: Edit copy-dev-null test description
2017-02-24 15:01:42 -08:00
JP Richardson
a37d7bbe1c
Merge pull request #366 from jprichardson/add-dest-param-filter-copy
...
Add dest parameter to filter option in copy and copySync
2017-02-22 20:58:14 -06:00
Mani Maghsoudlou
75d8ba7c32
Remove unnecessary param from filter regex in copy and copySync, remove done() from copySync test
2017-02-22 11:52:14 -08:00
JPeer264
d24a98bbc6
Update: arrow functions simplified
2017-02-22 15:40:47 +01:00
Mani Maghsoudlou
89230976b9
Add dest parameter to filter option in copy and copySync
2017-02-22 04:03:28 -08:00
JPeer264
3dd51ca2a6
Refactor test copy
2017-02-21 08:51:06 +01:00
JPeer264
4a862c8156
Refactor test copy/ncp
2017-02-21 08:37:19 +01:00
JPeer264
1851a4f23f
Refactor test copy/async
2017-02-21 08:20:34 +01:00
JPeer264
1a2d2ea3ea
Refactor copy
2017-02-14 18:38:35 +01:00
RyanZim
5be5ae3053
Rename clobber to overwrite
...
Keep clobber for backwards compatibility
Fixes #172
2016-12-29 17:38:45 -05:00
JP Richardson
2dd4c0e695
Merge pull request #330 from jprichardson/copy-clobber
...
BREAKING: Do not error when copy destination exists & clobber: false
2016-12-29 10:12:31 -06:00
RyanZim
3fa83d4f0d
BREAKING: Do not error when copy destination exists & clobber: false
...
Add errorOnExist option for users that want an error
Resolves #321
2016-12-24 15:53:23 -05:00
Nick Santos
543112bc00
Use writeStream 'finish' event instead of 'close'. Fixes https://github.com/jprichardson/node-fs-extra/issues/326
2016-12-20 22:59:16 -05:00
RyanZim
071f8ce963
Fix typo
...
depreciated -> deprecated
2016-10-28 14:56:35 -04:00
RyanZim
9da4958d39
Warn when filter is a RegExp
2016-10-27 16:07:09 -04:00
JP Richardson
7632804320
Merge pull request #294 from jprichardson/ncp
...
BREAKING: Refactor lib/copy/ncp.js
2016-10-27 09:47:03 -05:00
RyanZim
3da22b5803
BREAKING: Refactor lib/copy/ncp.js
...
- Fix #233 - First argument passed to callback should be an Error
object, not an array.
- Fix #272 - Should error when options.clobber is false and the
destination exists.
- Remove options.limit, it is no longer needed with graceful-fs.
2016-10-27 09:44:23 -04:00
RyanZim
0e0fcb88dc
Warn about using preserveTimestamps on 32-bit node
...
Fixes #269
2016-10-26 20:14:26 -04:00
Hurricane Hamilton
2e7f75504e
Escape '$' in replacement string for async file copying
...
Change made in /lib/copy/ncp.js to the string.replace in the onFile function
2016-10-26 11:31:59 -05:00
glortho
d863f5fa00
standardjs lint fixes
2016-03-16 09:40:32 -04:00
glortho
4df3d35a29
throw error if src and dest are the same to avoid zeroing out + test
2016-03-15 09:47:02 -04:00
Alexander Marenin
beef585ed5
fse.copy throws error when only src and dest provided
...
I have a lot of legacy code which uses old version(0.12.0) of fs-extra.
Old code does not work with new fs-extra due to it uses fse.copy with only 2 arguments `src` and `dest`.
Let's improve backward compatibility, guys
2016-01-27 18:12:31 +03:00
JP Richardson
d874b3bb5b
tests: copy /dev/null. Refs #204 . Closes #193 .
2015-12-17 11:17:26 -06:00
Ray Bellis
141422ee38
Update ncp.js
...
allow copying of character or block devices (NB: copies contents, not the inode)
2015-12-17 15:59:28 +00:00
JP Richardson
631ed20f7b
tests: copy-dev-null. Refs #193
2015-12-17 09:04:31 -06:00
JP Richardson
7b0ff8172a
JavaScript Standard Style tweaks
2015-10-21 06:24:01 -05:00
JP Richardson
b665058415
lib/copy/__tests__/copy-permissions: fix for appveyor
2015-07-09 06:33:03 -05:00
JP Richardson
ff163f0481
CI servers don't like userid
2015-07-09 06:29:11 -05:00
JP Richardson
0f77f47b16
lib/copy/__tests__/copy-permissions: updated
2015-07-09 06:22:53 -05:00
JP Richardson
082aa7f4ba
lib/copy/ncp: preserve mode
2015-07-09 05:49:00 -05:00
JP Richardson
a0d61ca456
JavaScript Standard Style
2015-07-09 05:21:13 -05:00
JP Richardson
6d788787fe
lib/{copy, copy-sync}/__tests__/preserve-time: fixed for Windows.
2015-07-03 13:53:28 -05:00
JP Richardson
ac2d8d2c9c
lib/copy-sync: split out of lib/copy/
2015-07-01 13:29:25 -05:00
JP Richardson
b1990b8038
lib/copy/__tests__/copy-sync: removed appveyor experiment
2015-06-28 10:36:23 -05:00
JP Richardson
096f3ec8c1
lib/copy/__test__/copy-sync: appveyor (temporary)
2015-06-27 08:19:56 -05:00
JP Richardson
5b8470815c
lib/copy/__test__/copy-sync: output hasMillis (temporary)
2015-06-27 08:16:37 -05:00
JP Richardson
ce0feafb29
lib/copy/__tests__/copy-sync: output path (TEMPORARY)
2015-06-27 08:02:45 -05:00
JP Richardson
c83ca2df8b
lib/copy/__tests__/copy-sync: output millisecond resolution in tests (TEMPORARY)
2015-06-27 07:49:56 -05:00
JP Richardson
0552e169f5
lib/copy/__tests__/copy-sync.test: moved test fixture ref
2015-06-27 07:49:28 -05:00
JP Richardson
8ffd01c38e
lib/copy/__tests__/copy-sync: moved
2015-06-27 07:38:19 -05:00
JP Richardson
c7a6962066
JSS
2015-06-26 09:58:23 -05:00
JP Richardson
6826254715
lib/copy/__tests__/copy-preserve-time: tidy up
2015-06-26 09:57:59 -05:00
JP Richardson
bbd6c996f7
lib/copy/__tests__: extracted preserve-time into own file
2015-06-26 09:55:20 -05:00
JP Richardson
75d765659d
lib/copy/__tests__: started breaking out tests
2015-06-26 09:43:55 -05:00
Joern Bernhardt
e5b4c45565
Use futimesSync and new utility function to preserve milliseconds
...
Signed-off-by: Joern Bernhardt <jb@campudus.com>
2015-06-22 23:32:22 +02:00
Joern Bernhardt
be5c6bb361
Change time check assertions for modification and access times
...
Signed-off-by: Joern Bernhardt <jb@campudus.com>
2015-06-22 23:09:17 +02:00
Joern Bernhardt
7574c3e2c4
Move tests into lib/copy/__tests__
...
Signed-off-by: Joern Bernhardt <jb@campudus.com>
2015-06-22 23:09:17 +02:00
Joern Bernhardt
fef5e8b26c
Add option to preserve timestamps
...
Signed-off-by: Joern Bernhardt <jb@campudus.com>
2015-06-22 23:09:17 +02:00
JP Richardson
b3e5aea5a0
lib/copy/__tests__: moved inline
2015-06-21 09:38:46 -05:00
JP Richardson
e241db8b82
lib/mkdirs: split mkdir functionality in lib/mkdirs/
2015-06-12 09:06:39 -05:00