Merge branch 'master' into binary-manager

This commit is contained in:
advplyr 2024-01-02 14:16:27 -06:00
commit aa63aa6cf3
18 changed files with 395 additions and 157 deletions

View file

@ -81,7 +81,12 @@ module.exports.getFileSize = async (path) => {
* @returns {Promise<number>} epoch timestamp
*/
module.exports.getFileMTimeMs = async (path) => {
return (await getFileStat(path))?.mtimeMs || 0
try {
return (await getFileStat(path))?.mtimeMs || 0
} catch (err) {
Logger.error(`[fileUtils] Failed to getFileMtimeMs`, err)
return 0
}
}
/**