Newer Post

JavaScript ES5: Meet the Object.defineProperty() Method

Older Post

Xplorers: A deep-dive into mkdirp

File System Permissions and Umask in Node.js

Working as a developer sometimes requires more knowledge than just that of programming itself. It’s always a good idea to grasp some concepts from other IT fields as well.

One of these concepts is file system permissions, proper management of which is a must when it comes to working with files, e.g., using node.js fs module.

I won’t write what exactly 777 or r/w/x mean, as it’s a very broad topic, but I’ll try to show how we can use those concepts in the node.js world.

Where may it come in handy? Definitely when we want to create new folders or files and be sure that only certain people have access to them. Let’s take a look at signatures of some fs module functions.

We'll help you unleash.

Join the 30,000 developers who subscribe to our newsletter.

Scale your
Development team

We help you execute projects by providing trusted developers who can join your team and immediately start delivering high-quality code.

Hire Developers
code, node