The blksize and
blocks values of
fs.stat()
are undefined on Windows.
The timestamps have inconsistent behavior across OS:
birthtimeandbirthtimeMscan be1970-01-01or the same asctimeon some platformsatimeandatimeMscan be disabled at the partition-level, especially on Unix but on Windows as well- Windows handles
ctimeandctimeMsdifferently than Unix mtimeandmtimeMsare 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.