19 Working with Files
One waits for the times to change, the other seizes them and acts.—Dante Alighieri
In the previous chapters, you’ve already seen how you can handle data streams in Node.js for the purpose of processing information. One of the most important sources of information and one of the most important targets of read and write operations is the file system.
First of all, here are some hints on handling files:
-
PermissionsA common source of errors related to the file system involves incorrect permissions. In Node.js, you work with the permissions of the user under which the application is running. If this user doesn’t have the permission to access the desired files, the Node.js process isn’t permitted to do so either, and an attempt ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access