diff --git a/.gitignore b/.gitignore index 55371e5..20335c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -.vscode \ No newline at end of file +.vscode +.idea \ No newline at end of file diff --git a/flv.go b/flv.go index 62fa931..97e30e9 100644 --- a/flv.go +++ b/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 }