diff --git a/internal/pcscommand/upload.go b/internal/pcscommand/upload.go index e9c4059c..0975f8b2 100644 --- a/internal/pcscommand/upload.go +++ b/internal/pcscommand/upload.go @@ -252,6 +252,11 @@ func RunUpload(localPaths []string, savePath string) { globedPathDir = filepath.Dir(globedPaths[k2]) } + // 避免去除文件名开头的"." + if globedPathDir == "." { + globedPathDir = "" + } + subSavePath = strings.TrimPrefix(walkedFiles[k3], globedPathDir) lastID++