From a86a576ace762f35df7eb5046400ffbcbb65e181 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=8C=E6=B5=B7=E4=BB=B2=E5=AD=90?= Date: Fri, 3 Sep 2021 22:38:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 83e4ec9..e44142f 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ func main() { // get all file link and download it func dl(client http.Client, path string, wg *sync.WaitGroup) { _, err := os.Stat(path) - if !os.IsNotExist(err) { + if os.IsNotExist(err) { os.MkdirAll(path, 0775) }