mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
* Juke Build (#59390) * Juke Build Hotfix 1 (#59643) * Juke Build Fix * More fixes * Juke Build Hotfix 2 - PreCompile script compatibility (#59649) * Juke Build Hotfix 2 - PreCompile script compatibility * Pass arguments from bat to build.js * Pass arguments in BUILD.bat as well * Quick tweak * Modular Skyrat detection~ Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
25 lines
317 B
JavaScript
25 lines
317 B
JavaScript
/**
|
|
* @file
|
|
* @copyright 2020 Aleksej Komarov
|
|
* @license MIT
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
|
|
/**
|
|
* Returns file stats for the provided path, or null if file is
|
|
* not accessible.
|
|
*/
|
|
const stat = path => {
|
|
try {
|
|
return fs.statSync(path);
|
|
}
|
|
catch {
|
|
return null;
|
|
}
|
|
};
|
|
|
|
module.exports = {
|
|
stat,
|
|
};
|