Maxime Bargiel
384aae04e8
copy*: Set new directory mode only after copying files (MacOS fix) ( #600 )
...
Fixes #599
2018-07-16 20:57:29 -04:00
Mani Maghsoudlou
e340861b4f
[BREAKING] copy*(): use ino to check identical paths ( #582 )
2018-07-16 20:52:21 -04:00
Mani Maghsoudlou
bbbc2db97e
copy*(): refactor copyDirItems() to avoid passing null param ( #570 )
2018-04-25 07:51:49 -04:00
Mani Maghsoudlou
b02eea6a37
Use strict assert in all tests ( #569 )
2018-04-19 07:28:45 -04:00
Mani Maghsoudlou
da69c573e3
copy & copySync: handle case-insensitive paths, check paths stricter before copying ( #568 )
2018-04-18 07:38:28 -04:00
Ryan Zimmerman
20c82ab4dd
Run stricter linter to cleanup problems and force ES6 usage ( #566 )
...
Also shorten fs.write() promise code
2018-04-10 08:12:12 -04:00
Ryan Zimmerman
5170b4f854
copy*() preserveTimestamps: false behavior is OS-dependent
...
Update docs and remove tests to reflect this
2018-04-06 12:55:53 -04:00
Mani Maghsoudlou
50c098ec0c
copy & copySync: do not overwrite src & dest paths to avoid side effects ( #554 )
2018-04-06 11:31:19 -04:00
Igor Bykov
a0d44c1773
Fix function isSrcSubdir in the copy-sync.js and copy.js ( #541 )
2018-02-20 19:08:50 -05:00
Mani Maghsoudlou
2ce4bff58b
Remove copy test fixtures dir, refactor copy & copySync timestamp test
2017-12-15 15:17:39 -08:00
Mani Maghsoudlou
a06f88b109
Apply the async filter to initial filter checking in copy
2017-11-19 00:34:48 -08:00
RyanZim
9732252b94
Allow copy's filter to return a Promise
2017-11-14 12:55:53 -05:00
Mani Maghsoudlou
199ec9f2c2
Apply filter before creating parent dir in copy
2017-11-09 15:14:57 -08:00
Mani Maghsoudlou
c59e0a6e2e
Fix streams initialization in copyFileFallback (introduced by @unkelpehr)
2017-11-09 11:12:46 -08:00
Ryan Zimmerman
603b8bb661
BREAKING: Don't allow copy()/copySync()'s filter option to be a Regex ( #512 )
...
This was deprecated previously, and is now removed.
2017-11-09 09:46:04 -05:00
Mani Maghsoudlou
1abc2a3fb6
Use native fs.copyFileSync in supported envs, add utimesMillisSync function to util/utimes.js
2017-11-01 00:20:06 -07:00
Mani Maghsoudlou
0bd52793a2
Add native fs.copyFile to copy()
2017-10-30 23:59:22 -07:00
Mani Maghsoudlou
fe0bfe2931
Rewrite copy to use recursive pattern for dirs, add more tests
2017-10-20 13:43:08 -07:00
RyanZim
5f888babe0
Skip copy & copySync timestamp tests on 32-bit computers
2017-06-27 11:37:02 -04:00
RyanZim
df125bebf7
Use pathExists() internally
2017-04-26 10:04:17 -04:00
RyanZim
03b2080b7e
Universalify fs-extra methods
2017-04-26 10:04:07 -04:00
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