修改创建文件夹的权限

This commit is contained in:
李宇翔
2020-05-21 11:07:39 +08:00
parent 8c86eded84
commit 9dc6be8ad1

View File

@@ -35,7 +35,7 @@ func init() {
}
func run() {
OnSubscribeHooks.AddHook(onSubscribe)
os.MkdirAll(config.Path, 0666)
os.MkdirAll(config.Path, 0777)
http.HandleFunc("/record/flv/list", func(writer http.ResponseWriter, r *http.Request) {
if files, err := tree(config.Path, 0); err == nil {
var bytes []byte