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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}