5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 20:40:33 +08:00

Fix asset dir perms

This commit is contained in:
Lea Anthony 2021-02-27 13:54:39 +11:00
parent bc5eddeb66
commit bac3e9e5c1
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405

View File

@ -40,7 +40,7 @@ func Mkdir(dirname string) error {
// Returns error on failure // Returns error on failure
func MkDirs(fullPath string, mode ...os.FileMode) error { func MkDirs(fullPath string, mode ...os.FileMode) error {
var perms os.FileMode var perms os.FileMode
perms = 0700 perms = 0755
if len(mode) == 1 { if len(mode) == 1 {
perms = mode[0] perms = mode[0]
} }
@ -243,7 +243,7 @@ func CopyDir(src string, dst string) (err error) {
return fmt.Errorf("destination already exists") return fmt.Errorf("destination already exists")
} }
err = os.MkdirAll(dst, si.Mode()) err = MkDirs(dst)
if err != nil { if err != nil {
return return
} }