From d1aac1f91a9ab5dd16a6818b0dfef5ad1b9e88e3 Mon Sep 17 00:00:00 2001 From: lovehunter9 Date: Fri, 13 Dec 2024 18:38:32 +0800 Subject: [PATCH] dropbox same copy --- packages/backend/http/awss3.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/http/awss3.go b/packages/backend/http/awss3.go index b233c63..6591222 100644 --- a/packages/backend/http/awss3.go +++ b/packages/backend/http/awss3.go @@ -756,9 +756,11 @@ func moveAwss3FolderOrFiles(src, dst string, w http.ResponseWriter, r *http.Requ srcDrive, srcName, srcPath := parseAwss3Path(src, true) _, _, dstPath := parseAwss3Path(dst, true) + dstDir, _ := filepath.Split(dstPath) + param := Awss3MoveFileParam{ CloudFilePath: srcPath, - NewCloudDirectory: dstPath, + NewCloudDirectory: dstDir, Drive: srcDrive, // "my_drive", Name: srcName, // "file_name", }