From 9f0a4d822e3515ead964edc5bced0dc4e2abee6d Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 15 May 2021 21:23:45 -0400 Subject: [PATCH] dir: Don't create unnecessary directories --- dir.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dir.go b/dir.go index f236239..2a85fa1 100644 --- a/dir.go +++ b/dir.go @@ -214,11 +214,7 @@ func (d *Dir) process(cfg *Site, task *Task) error { // write writes the directory's contents to the provided destination path. func (d *Dir) write(dstDir string, task *Task) error { - // Create the directory dirPath := pathpkg.Join(dstDir, d.Path) - if err := os.MkdirAll(dirPath, 0755); err != nil { - return err - } // Write pages pages := d.Pages