B
B
bozuriciyu2019-08-24 17:51:04
Node.js
bozuriciyu, 2019-08-24 17:51:04

How to create a directory?

How to create directories where there are not enough user rights?
You need to create a directory in /var/www
Useshelljs
shell.mkdir('-p', directory);

mkdir: cannot create directory /var/www/example.com/uploads/images/originals

How to do it safely? Running a node as root is not an option.
spoiler
Adult Videos

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question