Skip to content

Conversation

Tango992
Copy link
Contributor

@Tango992 Tango992 commented Sep 28, 2025

Closes #30570

This PR tries to reland #30637 that got reverted on #30741 due to test flakiness.

The flakiness comes from the ino property of Deno.FileInfo that can have a bigint type when serialized from the op function to the JS side. It fails the unit test when{ bigint: false } option is passed that expects all stat properties to be a number. This only happens on async lstat and stat, not the sync version.

This PR ensures that the inode property of Deno.FileInfo is always number instead of bigint.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Great work as always. Let's try it.

@dsherret dsherret merged commit 1573279 into denoland:main Oct 3, 2025
19 checks passed
@Tango992 Tango992 deleted the fs-stat-compat branch October 4, 2025 00:23
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.

npm:fs-extra: Cannot copy/move 'X' to a subdirectory of itself, 'Y'.

2 participants