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
import (
"log"
"os"
"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 {
// fmt.Println(err)
}
if IsFileExist(localPath, fsize) {
if ok, _ := IsFileExist(localPath, fsize); ok {
return err
}


Loading…
Cancel
Save