fix(backend): fixed permission on creating new folder for store sessions mob files
This commit is contained in:
parent
4107fed711
commit
f3a17099f5
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ func (w *Writer) open(fname string) (*os.File, error) {
|
|||
// mkdir if not exist
|
||||
pathTo := w.dir + filepath.Dir(fname)
|
||||
if _, err := os.Stat(pathTo); os.IsNotExist(err) {
|
||||
os.MkdirAll(pathTo, 0644)
|
||||
os.MkdirAll(pathTo, 0755)
|
||||
}
|
||||
|
||||
file, err := os.OpenFile(w.dir+fname, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0644)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue