Skip to content

Commit

Permalink
dropbox same copy
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Dec 13, 2024
1 parent d1aac1f commit 1308fd8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/backend/http/awss3.go
Original file line number Diff line number Diff line change
Expand Up @@ -758,9 +758,14 @@ func moveAwss3FolderOrFiles(src, dst string, w http.ResponseWriter, r *http.Requ

dstDir, _ := filepath.Split(dstPath)

trimmedDstDir := strings.TrimSuffix(dstDir, "/")
if trimmedDstDir == "" {
trimmedDstDir = "/"
}

param := Awss3MoveFileParam{
CloudFilePath: srcPath,
NewCloudDirectory: dstDir,
NewCloudDirectory: trimmedDstDir,
Drive: srcDrive, // "my_drive",
Name: srcName, // "file_name",
}
Expand Down

0 comments on commit 1308fd8

Please sign in to comment.