๐Ÿ“‚ File metadata

November 27, 2022 ยท View on GitHub

fs.stat()

The blksize and blocks values of fs.stat() are undefined on Windows.

The timestamps have inconsistent behavior across OS:

fs.open()

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()

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.


Next (๐Ÿ’ป Terminal)
Previous (๐Ÿ“‚ Symlinks)
Top