Browse Source

修复

master v0.1.1
guzeng 3 years ago
parent
commit
01d3de4357
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      dir.go
  2. +1
    -1
      download.go

+ 2
- 0
dir.go View File

@ -1,6 +1,8 @@
package file package file
import ( import (
"log"
"os"
"strings" "strings"
) )


+ 1
- 1
download.go View File

@ -53,7 +53,7 @@ func DownProgress(url string, localPath string, fb func(length, downLen int64))
if err != nil { if err != nil {
// fmt.Println(err) // fmt.Println(err)
} }
if IsFileExist(localPath, fsize) {
if ok, _ := IsFileExist(localPath, fsize); ok {
return err return err
} }


Loading…
Cancel
Save