Skip to content

Conversation

shzhaij
Copy link
Contributor

@shzhaij shzhaij commented Jul 28, 2025

when testing move() function on windows with node v22+, it is found that stat.areIdentical not working correctly due to fsStat object returned from fs.stat has the value of dev property as 0n, this makes the original check for destStat.ino && destStat.dev returns unexpected false.

test case: move('/tmp/a', '/tmp/A') will throw dest file exist error.

@RyanZim RyanZim requested a review from manidlou July 28, 2025 18:45
Copy link
Collaborator

@manidlou manidlou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@RyanZim RyanZim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't have a Windows box to test this on, but should be harmless in any case.

@RyanZim RyanZim merged commit b897b36 into jprichardson:master Aug 4, 2025
12 checks passed
@RyanZim
Copy link
Collaborator

RyanZim commented Aug 5, 2025

Published in 11.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants