Ryan Zimmerman
f3a2eed496
Upgrade to standard v12 ( #685 )
6 years ago
Ryan Zimmerman
fa661f3664
Add support for fs.realpath.native in envs that support it ( #682 )
* Add support for fs.realpath.native in envs that support it
* Add test for realpathSync.native
* assert.equal -> assert.strictEqual
6 years ago
Mani Maghsoudlou
72278dcf14
util/stat: resolve paths before parsing
6 years ago
Mani Maghsoudlou
0bc36ffd5e
v8 release ( #667 )
* Remove secure-random from dev-deps (#610 )
* fix ensureDir() doc
* moveSync: refactor to use renameSync
* copy*(): fix copying bind-mounted directories (#618 )
* copy*(): fix copying bind-mounted dirs
* copy*(): fix case-insensitive-paths tests
* copy*(): refactor to check paths more efficiently
* destructure stats object after checking err
* move*(): check paths before moving
* move*(): add case-insensitive paths test
* remove unnecessary done callback from test
* copy*(): add new option checkPathsBeforeCopying
* update copy*() docs to include checkPathsBeforeCopying
* some reformatting
* copy*(): use fs.stat with bigint option
* move*(): refactor to use the internal stat functions
* move*(): add test for prevent moving identical
* disable graceful-fs in copy and move tests
* fix parsing node version
* tiny reformat
* update copy*() docs
* refactor parsing node version
* use semver to parse node version in tests
6 years ago
Pete Gonzalez
ddc1a2f9d4
Fix removeSync() to eliminate spurious ENOTEMPTY errors on Windows ( #646 )
Fix removeSync() to measure its retry interval in milliseconds instead of CPU cycles
6 years ago
Ram Hejazi
1a4e88543b
Add missing element for fs.lchmod promisification ( #595 ) ( #596 )
7 years ago
Maxime Bargiel
384aae04e8
copy*: Set new directory mode only after copying files (MacOS fix) ( #600 )
Fixes #599
7 years ago
Mani Maghsoudlou
e340861b4f
[BREAKING] copy*(): use ino to check identical paths ( #582 )
7 years ago
Miroslav Bajtoš
2ffb64cf8e
Fix fs.promises ExperimentalWarning on Node 10.1.0 ( #578 )
7 years ago
Mani Maghsoudlou
bbbc2db97e
copy*(): refactor copyDirItems() to avoid passing null param ( #570 )
7 years ago
Mani Maghsoudlou
b02eea6a37
Use strict assert in all tests ( #569 )
7 years ago
Mani Maghsoudlou
da69c573e3
copy & copySync: handle case-insensitive paths, check paths stricter before copying ( #568 )
7 years ago
Ryan Zimmerman
20c82ab4dd
Run stricter linter to cleanup problems and force ES6 usage ( #566 )
Also shorten fs.write() promise code
7 years ago
Ryan Zimmerman
5170b4f854
copy*() preserveTimestamps: false behavior is OS-dependent
Update docs and remove tests to reflect this
7 years ago
Mani Maghsoudlou
50c098ec0c
copy & copySync: do not overwrite src & dest paths to avoid side effects ( #554 )
7 years ago
Mani Maghsoudlou
6b90ccf962
move: rewrite move to use fs.rename ( #549 )
* rewrite move to use fs.rename
* add old tests
* use strictEqual for error message assertion
* refactor move, remove comments
* fix move when overwrite is true and dest exists
* remove unnecessary checking of EPERM error
7 years ago
wontem
7e2aba069f
remove extra step in reading loop
7 years ago
Igor Bykov
a0d44c1773
Fix function isSrcSubdir in the copy-sync.js and copy.js ( #541 )
7 years ago
Mani Maghsoudlou
2ce4bff58b
Remove copy test fixtures dir, refactor copy & copySync timestamp test
7 years ago
Mani Maghsoudlou
a06f88b109
Apply the async filter to initial filter checking in copy
7 years ago
Mani Maghsoudlou
5bdbdc4fc8
Skip copySync preserveTimestamp tests on older node versions
7 years ago
Maël Nison
d21da93138
Fixes fs-extra on linux
7 years ago
RyanZim
9732252b94
Allow copy's filter to return a Promise
7 years ago
Mani Maghsoudlou
5d1f2d3c2b
Use fs.chmodSync() before preserveTimestamp
7 years ago
Mani Maghsoudlou
d6f6da1e71
Use srcStat param in copyFileFallback
7 years ago
Mani Maghsoudlou
546216ccdd
Remove setTimeout when preserveTimestamp is true
7 years ago
Mani Maghsoudlou
fda912a381
Rewrite copySync, add more tests, remove fixtures folder
7 years ago
Mani Maghsoudlou
199ec9f2c2
Apply filter before creating parent dir in copy
7 years ago
Mani Maghsoudlou
c59e0a6e2e
Fix streams initialization in copyFileFallback (introduced by @unkelpehr )
7 years ago
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.
7 years ago
Mani Maghsoudlou
1abc2a3fb6
Use native fs.copyFileSync in supported envs, add utimesMillisSync function to util/utimes.js
7 years ago
Mani Maghsoudlou
0bd52793a2
Add native fs.copyFile to copy()
7 years ago
Mani Maghsoudlou
fe0bfe2931
Rewrite copy to use recursive pattern for dirs, add more tests
8 years ago
RyanZim
ddb5cb47a5
Use octal notation for chmod values in rimraf.js
Backports 38b907fd64
Fixes #484
8 years ago
RyanZim
ef9ade4929
Universalify fs.copyFile when available
Refs #490
8 years ago
RyanZim
7a9bb173b9
Upgrade to jsonfile 4.0.0 for EOL option support
8 years ago
RyanZim
3fc58948ad
ensureFile & ensureFileSync should error when the path is a directory
Fixes #465
8 years ago
RyanZim
33fbe78c3d
Apply upstream rimraf fixes
e8b10a79c2
d53235de86
e8cd6853ba
8 years ago
Mani Maghsoudlou
d99d8a19d6
Fix isSrcSubdir() split bug
8 years ago
Mani Maghsoudlou
f8f441ae63
Refactor isSrcSubdir() in move
8 years ago
Mani Maghsoudlou
16dc81e1f8
Fix the issue of moving into itself
8 years ago
RyanZim
5f888babe0
Skip copy & copySync timestamp tests on 32-bit computers
8 years ago
RyanZim
e4c3618ad0
BREAKING: fs.read() & fs.write() should return objects
For forward-compat with util.promisify()
8 years ago
RyanZim
dd85f38ab1
Fix typo that broke outputJSONSync()
Reorganize file to put async methods first
8 years ago
RyanZim
5bfcb64b21
move() should error when src & dest are the same and src doesn't exist
Fixes #414 ; bug introduced in #378
8 years ago
RyanZim
891f483cfc
Upgrade standard
8 years ago
RyanZim
df125bebf7
Use pathExists() internally
8 years ago
RyanZim
3f7988de22
Add pathExists() and pathExistsSync()
8 years ago
RyanZim
03b2080b7e
Universalify fs-extra methods
8 years ago
RyanZim
dba0cbb595
Universalify native fs methods
8 years ago