Cleanup & start of abs metadata file

This commit is contained in:
advplyr 2022-02-10 17:05:15 -06:00
parent 8a0508342b
commit 30e0cc4c07
4 changed files with 41 additions and 13 deletions

View file

@ -51,16 +51,6 @@ function bytesPretty(bytes, decimals = 0) {
}
module.exports.bytesPretty = bytesPretty
function setFileOwner(path, uid, gid) {
try {
return fs.chown(path, uid, gid).then(() => true)
} catch (err) {
console.error('Failed set file owner', err)
return false
}
}
module.exports.setFileOwner = setFileOwner
async function recurseFiles(path, relPathToReplace = null) {
path = path.replace(/\\/g, '/')
if (!path.endsWith('/')) path = path + '/'