Skip to content

Commit

Permalink
fix accidently deleted method
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiAF committed Feb 13, 2024
1 parent 544c0c8 commit 47f0507
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ export function getFilePath(): string {
return FILEPATH;
}

function initFilePath(): void {
if (FILEPATH === 'cache/files') console.warn('[WARN] File path is located inside the cache directory. The cache directory is supposed to be temporary.');
if (!fs.existsSync(FILEPATH)) fs.mkdirSync(FILEPATH, { recursive: true });
if (!fs.existsSync(FILEPATH + '/skins')) fs.mkdirSync(FILEPATH + '/skins', { recursive: true });
if (!fs.existsSync(FILEPATH + '/capes')) fs.mkdirSync(FILEPATH + '/capes', { recursive: true });
}

/**
* Converts the provided text into MD5
*/
Expand Down

0 comments on commit 47f0507

Please sign in to comment.