fix: Update directory creation permissions in Open function
- Change directory creation permissions from 0644 to 0755 in the Open function to align with standard directory permission practices, ensuring proper access for created directories.
This commit is contained in:
parent
bc576f1bab
commit
5d01f62a9e
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ func Open(path string, writable bool) (string, error) {
|
|||
// Auto create dir
|
||||
dir := filepath.Dir(absPath)
|
||||
if _, err := os.Stat(dir); os.IsNotExist(err) {
|
||||
err := os.MkdirAll(dir, 0644)
|
||||
err := os.MkdirAll(dir, 0755) // 0755 is the default permission for directories
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue