Correctly setting the new path when moving files

master
WolverinDEV 2021-06-11 12:22:16 +02:00
parent 7601ac2e07
commit f7fe3162c3
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ const NavigationEntry = (props: { events: Registry<FileBrowserEvents>, 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