granular debug options

This commit is contained in:
tsightler
2021-09-25 15:28:49 -04:00
parent a165fd7897
commit 000653e1bf
29 changed files with 149 additions and 129 deletions

View File

@@ -15,18 +15,6 @@ class Utils
return new Promise(res => setTimeout(res, msec))
}
// Function to check if file exist and, optionally, if it is over a given size
checkFile(file, sizeInBytes) {
sizeInBytes = sizeInBytes ? sizeInBytes : 0
if (!fs.existsSync(file)) {
return false
} else if (fs.statSync(file).size > sizeInBytes) {
return true
} else {
return false
}
}
// Return ISO time from epoch without milliseconds
getISOTime(epoch) {
return new Date(epoch).toISOString().slice(0,-5)+"Z"