Skip to content

Commit

Permalink
- Reldens - v4.0.0 - Fix file handler isFile validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
damian-pastorini committed Nov 24, 2024
1 parent cb53ec5 commit 1423a94
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/game/server/file-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,12 @@ class FileHandler

isFile(filePath)
{
return fs.lstatSync(filePath).isFile();
try {
return fs.lstatSync(filePath).isFile();
} catch (error) {
Logger.error(error.message);
}
return false;
}

permissionsCheck(systemPath)
Expand Down

0 comments on commit 1423a94

Please sign in to comment.