From 3091e93e3e17e9497ff64632e5fdc413327f4f14 Mon Sep 17 00:00:00 2001 From: Minho Date: Thu, 11 May 2017 17:15:56 +0800 Subject: [PATCH] * --- controllers/document.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/document.go b/controllers/document.go index c7fe2eb5..ba1093e6 100644 --- a/controllers/document.go +++ b/controllers/document.go @@ -645,7 +645,7 @@ func RecursiveFun(parent_id int,prefix,dpath string,c *DocumentController,book paths.PushBack(fpath) - f, err := os.OpenFile(fpath, os.O_CREATE, 0777) + f, err := os.OpenFile(fpath, os.O_CREATE|os.O_RDWR, 0777) if err != nil { beego.Error(err)