mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-20 12:09:36 +02:00
Server: Reimplemented config system
This commit is contained in:
parent
85ee5da025
commit
b7de1e3d27
6 changed files with 107 additions and 114 deletions
10
utils/checkFileExists.js
Normal file
10
utils/checkFileExists.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const fs = require('fs');
|
||||
|
||||
const checkFileExists = (path) => {
|
||||
return fs.promises
|
||||
.access(path, fs.constants.F_OK)
|
||||
.then(() => true)
|
||||
.catch(() => false);
|
||||
};
|
||||
|
||||
module.exports = checkFileExists;
|
Loading…
Add table
Add a link
Reference in a new issue