You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FileSystem.stat fails on Windows when NTFS inode exceeds Number.MAX_SAFE_INTEGER #8163
After #8110, Node FileSystem.stat uses { bigint: true } and converts identity metadata with Number(). If ino (or another field) is not a JS safe integer, the entire stat fails with BadArgument — including mtime, size, and type.
NTFS file indexes are 64-bit and routinely exceed Number.MAX_SAFE_INTEGER. That makes stat fail for ordinary files on Windows.
File.Info.ino is already Option<number>. An optional identity field that does not fit in number should be Option.none(), not a failed stat. size / blksize already take the preserve-exact path via ByteSize; optional numeric metadata should take the Option path.
On Windows this surfaces as BadArgument: ino exceeds the safe integer range: <64-bit file id> for a 10-byte temp file. We hit it in Alchemy's Cloudflare runtime registry after upgrading to [email protected]: live registry entries were treated as missing because stat (used only for mtime) failed.
Activity