From f7fe3162c31e48902d6237d599723d792bf6418d Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Fri, 11 Jun 2021 12:22:16 +0200 Subject: [PATCH] Correctly setting the new path when moving files --- shared/js/ui/modal/transfer/FileBrowserRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx b/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx index 70b86779..06f7072b 100644 --- a/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx +++ b/shared/js/ui/modal/transfer/FileBrowserRenderer.tsx @@ -115,7 +115,7 @@ const NavigationEntry = (props: { events: Registry, path: str const oldPath = fileUrl.split("/").slice(0, -1).join("/") + "/"; props.events.fire("action_rename_file", { - newPath: props.path + "/", + newPath: props.path.endsWith("/") ? props.path : props.path + "/", oldPath: oldPath, oldName: name, newName: name