Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Small Bug where there is no directory exists check for the new plugins folder
  • Loading branch information
hackthedev authored Jul 29, 2024
1 parent 4c8e25b commit 6ccaea9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export var versionCode = 346;
let powDifficulty = 7;


// check if needed directories are setup
checkServerDirectories()

// check if config file exists
checkConfigFile()
Expand Down Expand Up @@ -305,8 +307,6 @@ checkVersionUpdate();
}


// check if needed directories are setup
checkServerDirectories()


consolas(" ", );
Expand Down
5 changes: 5 additions & 0 deletions modules/functions/io.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export function checkServerDirectories(){
if (!fs.existsSync("./public/uploads")){
fs.mkdirSync("./public/uploads");
}

// User Plugins Folder
if (!fs.existsSync("./plugins")){
fs.mkdirSync("./plugins");
}
}

export function checkConfigFile(){
Expand Down

0 comments on commit 6ccaea9

Please sign in to comment.