update links in file nodejs/fs

This commit is contained in:
thomasabishop 2023-04-21 06:54:17 +01:00
parent 5a9f4c74b7
commit 54c6f3c410

View file

@ -6,11 +6,11 @@ tags:
- node-js
---
# `fs` module
# fs module
File System is an essential built-in module of Node that contains utility methods for working with files and directories.
Every method associated with `fs` has a _blocking_ and _asynchronous_ implementation. The former obviously blocks the [event queue](Event%20queue.md), the latter does not.
Every method associated with `fs` has a _blocking_ and _asynchronous_ implementation. The former obviously blocks the [event queue](/Programming_Languages/NodeJS/Architecture/Event_loop.md), the latter does not.
The synchronous methods are useful to have in some contexts but in general and with real-world applications, you should be using the async implementation so as to accord with the single-threaded event-driven architecture of Node.
@ -94,4 +94,4 @@ fs.rmSync("/dir", { recursive: true, force: true });
## Streams
See [Handling streams with fs](/Programming_Languages/Node/Streams.md)
See [Handling streams with fs](/Programming_Languages/NodeJS/Streams.md)