mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-09-26 20:51:24 +08:00
bugfix for directory permission
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
node_modules
|
||||
.vscode
|
||||
.vscode
|
||||
.idea
|
4
flv.go
4
flv.go
@@ -35,8 +35,8 @@ func SaveFlv(streamPath string, append bool) error {
|
||||
flag = flag | os.O_TRUNC | os.O_WRONLY
|
||||
}
|
||||
filePath := filepath.Join(config.Path, streamPath+".flv")
|
||||
os.MkdirAll(path.Dir(filePath), 0666)
|
||||
file, err := os.OpenFile(filePath, flag, 0666)
|
||||
os.MkdirAll(path.Dir(filePath), 0775)
|
||||
file, err := os.OpenFile(filePath, flag, 0775)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user