逻辑错误bug
This commit is contained in:
parent
43232d9661
commit
a86a576ace
2
main.go
2
main.go
|
|
@ -43,7 +43,7 @@ func main() {
|
||||||
// get all file link and download it
|
// get all file link and download it
|
||||||
func dl(client http.Client, path string, wg *sync.WaitGroup) {
|
func dl(client http.Client, path string, wg *sync.WaitGroup) {
|
||||||
_, err := os.Stat(path)
|
_, err := os.Stat(path)
|
||||||
if !os.IsNotExist(err) {
|
if os.IsNotExist(err) {
|
||||||
os.MkdirAll(path, 0775)
|
os.MkdirAll(path, 0775)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue