mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-02-02 21:27:15 +08:00
make update warning more readable
This commit is contained in:
parent
a85cfe20ab
commit
11c4c632d7
@ -23,6 +23,10 @@ import (
|
||||
func update(targetPath string, src io.Reader) error {
|
||||
info, err := os.Stat(targetPath)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
fmt.Printf("警告: 本地文件不存在 %s\n", targetPath)
|
||||
return nil
|
||||
}
|
||||
fmt.Printf("Warning: %s\n", err)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user