You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 9, 2019. It is now read-only.
Totally looks like unrelated to bolt. Make sure dataPath isnt't empty, and
you indeed have permission to write. Bolt does nothing special at this
point.
Le ven. 20 avr. 2018 à 23:01, Tony Wang <[email protected]> a écrit :
I use the following code to create/open a bolt database file under the
user home directory on mac:
curUser, err := user.Current()if err != nil {
panic(err)
} else {
dataPath := filepath.Join(curUser.HomeDir, dataPath)
handle, err := bolt.Open(dataPath, 0644, defaultBoltOptions)if err != nil {
log(err) // this tells me permission denied error
}
}
I wonder why this happened and how to fix it? I run my go code go run
main.go as a mac user.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#752>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGwMLPSjN83d5UBgumQGNGSis-XuGvYks5tqkyqgaJpZM4TeFcf>
.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I use the following code to create/open a bolt database file under the user home directory on mac:
I wonder why this happened and how to fix it? I run my go code
go run main.go
as a mac user.The text was updated successfully, but these errors were encountered: