Correctly setting the new path when moving files
parent
7601ac2e07
commit
f7fe3162c3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue