1
0
forked from noxious/server

Added logging, worked on character type management

This commit is contained in:
2024-10-19 02:14:39 +02:00
parent d29420cbf3
commit 4e1e7d95ac
11 changed files with 234 additions and 32 deletions

View File

@ -17,17 +17,17 @@ export function getPublicPath(folder: string, ...additionalSegments: string[]) {
export function doesPathExist(path: string) {
try {
fs.accessSync(path, fs.constants.F_OK);
return true;
fs.accessSync(path, fs.constants.F_OK)
return true
} catch (e) {
return false;
return false
}
}
export function createDir(path: string) {
try {
fs.mkdirSync(path, { recursive: true });
fs.mkdirSync(path, { recursive: true })
} catch (e) {
console.error(e);
console.error(e)
}
}
}