mirror of
https://github.com/Monibuca/plugin-record.git
synced 2025-10-24 00:43:09 +08:00
修改创建文件夹的权限
This commit is contained in:
2
main.go
2
main.go
@@ -35,7 +35,7 @@ func init() {
|
|||||||
}
|
}
|
||||||
func run() {
|
func run() {
|
||||||
OnSubscribeHooks.AddHook(onSubscribe)
|
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) {
|
http.HandleFunc("/record/flv/list", func(writer http.ResponseWriter, r *http.Request) {
|
||||||
if files, err := tree(config.Path, 0); err == nil {
|
if files, err := tree(config.Path, 0); err == nil {
|
||||||
var bytes []byte
|
var bytes []byte
|
||||||
|
Reference in New Issue
Block a user