Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 2.26 KB

file_metadata.md

File metadata and controls

54 lines (42 loc) · 2.26 KB

📂 File metadata

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