From 0866845b138fe78b219b6df07ae7dcad3dfaaba5 Mon Sep 17 00:00:00 2001 From: Shiyou Date: Thu, 19 May 2022 10:04:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=94=A8=20mkdirall=20=E4=BE=86?= =?UTF-8?q?=E8=99=95=E7=90=86=E6=96=B0=E5=A2=9E=E8=B3=87=E6=96=99=E5=A4=BE?= =?UTF-8?q?=E7=9A=84=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- book.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.go b/book.go index c3ada48..86071b5 100644 --- a/book.go +++ b/book.go @@ -114,7 +114,7 @@ func (i *Info) Compile() (err error) { outDir := path.Join(i.OutputFolderPath, filepath.Dir(relativeFilePath)) if _, err := os.Stat(outDir); os.IsNotExist(err) { log.Print("Create folder ", outDir) - os.Mkdir(outDir, os.ModeDir) + os.MkdirAll(outDir, os.ModeDir) } if path.Ext(relativeFilePath) == ".md" {