The blksize
and
blocks
values of
fs.stat()
are undefined
on Windows.
The timestamps have inconsistent behavior across OS:
birthtime
andbirthtimeMs
can be1970-01-01
or the same asctime
on some platformsatime
andatimeMs
can be disabled at the partition-level, especially on Unix but on Windows as well- Windows handles
ctime
andctimeMs
differently than Unix mtime
andmtimeMs
are also not completely reliable
The O_NOATIME
flag of
fs.open()
only works on Linux. Access times can also be disabled on Windows but through
the registry.
The UV_FS_O_FILEMAP
flag only works on Windows.
fs.watch()
is not very
cross-platform. For example the option recursive
does not work on Linux in
Node.js <19.1.0
. chokidar
can be
used instead.
The --watch-path
CLI flag does
not work on Linux either.