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) }