How does js generate folders according to the path?

for example, if the path is / csrSystemXYK/src/com/sunyard/csr/action/
, then create a folder?

Jun.02,2021

if it is nodejs , fs.existsSync determine whether there is a step-by-step fs.mkdirSync > create


you can take a look at

use nodejs, shell's implementation package, str.split ("/") to generate an array. Traversing mkdir


node contains api:
fs.mkdir (path [, mode], callback)
) that creates a directory. However, only if the current path exists, can it exist at the next level. You can transfer the path path to an array and call it through the loop

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b347-2b7c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b347-2b7c0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?