diff --git a/interface/resources/qml/AssetServer.qml b/interface/resources/qml/AssetServer.qml index a3fe6cacb8..e5e3d95a81 100644 --- a/interface/resources/qml/AssetServer.qml +++ b/interface/resources/qml/AssetServer.qml @@ -73,6 +73,11 @@ Window { newPath = "/" + newPath; } + if (oldPath[oldPath.length - 1] == '/' && newPath[newPath.length - 1] != '/') { + // this is a folder rename but the user neglected to add a trailing slash when providing a new path + newPath = newPath + "/"; + } + if (Assets.isKnownFolder(newPath)) { box = errorMessageBox("Cannot overwrite existing directory."); box.selected.connect(reload);