逻辑错误bug

This commit is contained in:
suguo.yao 2021-09-03 22:38:47 +08:00
parent 43232d9661
commit a86a576ace
1 changed files with 1 additions and 1 deletions

View File

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