the following Code Works Perfectly on My Machine, However When I put it online on an Ubuntu server, it seems it has some problems. I'm not sure why
if (!existsSync(`${some path}/${MemberID}`)){
mkdirSync(`${some path}/${MemberID}`);
}
I think It has something to do with different file systems in Windows and Linux. I'm not even a Linux Beginner. thanks in advance:)
Think you don't have permissions to create directory
Use ls -l
for check permissions
First of all make sure that path of ${some path} already exist.
Second, check that the access rights for the running node process has permissions to create that pathes.
Third, try on terminal / console (replace some path and MemberID with real path and value)
mkdir "some path/MemberID"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.