From b75306df46a7385d9ab4eb64f989bd6ce6d0df84 Mon Sep 17 00:00:00 2001 From: iuroc Date: Tue, 13 Aug 2024 14:20:18 +0800 Subject: [PATCH] .. --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 40666ee..741037d 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,10 @@ func main() { } path := TrimPathInput(scanner.Text()) work, err := dodo.NewUploadWork(path, userInfo.Token, userInfo.UID) - if err != nil { + if os.IsNotExist(err) { + fmt.Println("❗ 错误: 文件不存在,请检查路径是否正确。") + continue + } else if err != nil { fmt.Println("❗ 错误:", err) continue }