199 Commits

Author SHA1 Message Date
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
sang
ee02d2fc00 fix 'TypeError: callback is not a function' 2016-03-15 16:16:54 +08: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
chinesedfan
38d1ab7fb3 [copySync]fix options.preserveTimestamps. Closes #205. 2016-01-05 15:09:29 +08: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
08ebcfab78 lib/json: bug fix, outputJson{Sync} wasn't setting spaces correctly. Closes #163. 2015-11-02 21:00:22 -06:00
bartland
8753c3d0bf Fix so copySync unlinking read only file will now work on
nodejs 0.10.40. This commit fixes #183.
2015-11-02 23:44:15 +11:00
bartland
e05c685e5a copySync updated to overwrite destination file if readonly and clobber
set to true. Added test case. This commit fixes #183.
2015-10-31 14:04:56 +11:00
bartland
22c19fe1d0 move.test modified to support testing files with both LF (NIX) and
CRLF (Windows) line endings. This commit fixes #188.
2015-10-31 12:36:12 +11:00
JP Richardson
cae574f45a lib/walk: extracted out into module klaw 2015-10-25 10:46:12 -05:00
JP Richardson
4b9805a9e4 lib/walk: made public, added tests 2015-10-24 16:55:12 -05:00
JP Richardson
7b0ff8172a JavaScript Standard Style tweaks 2015-10-21 06:24:01 -05:00
JP Richardson
955836b1ff lib/remove: removed alias 'delete()' 2015-08-28 15:16:31 -05:00
JP Richardson
25c1985ba1 JavaScript Standard Style 2015-08-28 15:14:10 -05:00
JP Richardson
935daa1c7a Merge pull request #170 from nicks/nick-err
More robust handling of errors moving across virtual drives
2015-08-07 15:20:39 -05:00
Nick Santos
24948a4e0c More robust handling of errors moving across virtual drives
Discovered while investigating
https://github.com/Medium/phantomjs/issues/341
where moving a directory across virtual drives caused an
EXDEV error that shunted things down the "move file"
instead of "move directory" codepath
2015-08-06 23:52:15 -04:00
reggi
8d92df4366 suppress ensurelink dest exists error
suppress ensuresync dest exists error
2015-08-06 18:37:48 -04:00
reggi
66dc67f418 added ensureLink & ensureSymlink 2015-08-06 13:16:09 -04:00
JP Richardson
f215fc3c56 lib/walk/walker: streams implementation complete 2015-07-13 03:26:22 -05:00
JP Richardson
b48f10284c lib/walk/walker: only emit one object (path, stat) instead of two params 2015-07-13 02:48:39 -05:00
JP Richardson
203bc7cb64 lib/util/__tests__/utimes: remove HAS_MILLIS_RES 2015-07-09 10:01:34 -05:00
JP Richardson
146dfecd55 lib/util/utimes: prevent calling hasMillisResSync() on module load. Closes #149 2015-07-09 09:55:38 -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
f023eec02b lib/copy-sync/__tests__/copy-sync-dir: fixed 2015-07-09 05:17:18 -05:00
JP Richardson
a512f12c7d lib/copy-sync/__tests__/copy-sync-preserve-time: split into more files 2015-07-09 04:29:21 -05:00
JP Richardson
e9221d6bcd lib/copy-sync/__tests__/copy-sync-preserver-time: renamed 2015-07-08 09:55:08 -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
57d04ba0e3 lib/copy-sync/__tests__/preserve-time: extracted out from ./copy-sync.test 2015-07-03 13:45:42 -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
ff2d362f05 lib/mkdirs/__tests__: added another 2015-06-27 12:52:33 -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
8c79325478 lib/util/utimes: create hasMillisRes() (async) 2015-06-27 08:16:11 -05:00
JP Richardson
470b4ab7dc lib/util/utimes: try to match appveyor 2015-06-27 08:06:56 -05:00
JP Richardson
ce0feafb29 lib/copy/__tests__/copy-sync: output path (TEMPORARY) 2015-06-27 08:02:45 -05:00
JP Richardson
2948de279c lib/util/utimes: remove optimization 2015-06-27 07:55:03 -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