fix: handle os.chmod errors (#457)

This commit is contained in:
Cameron
2023-12-25 11:17:31 -08:00
committed by GitHub
parent 13a4c05ff5
commit 585b55c2ee
3 changed files with 55 additions and 13 deletions

View File

@@ -556,3 +556,8 @@ func RandomString(length int) string {
}
return string(b)
}
func ManagePerms(path string) error {
err := os.Chmod(path, 0600)
return err
}