Skip to content

Commit

Permalink
Fix windows path bug
Browse files Browse the repository at this point in the history
  • Loading branch information
52funny committed Feb 23, 2023
1 parent 3dbb108 commit 78d0274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func handleUploadFolder(p *pikpak.PikPak, path string) {
logrus.Debug("upload folder: ", uploadFolder, " parentId: ", parentId)

for _, v := range uploadFilePath {
if strings.Contains(v, "/") {
if strings.Contains(v, "/") || strings.Contains(v, "\\") {
basePath := filepath.Dir(v)
id, err := p.GetDeepFolderOrCreateId(parentId, basePath)
if err != nil {
Expand Down

0 comments on commit 78d0274

Please sign in to comment.