broulik added a comment.
I think it's fine in this place (not kuiserverengine), I suppose slice(0,0) will return the entire string so this won't break cases where we do not have a path? Can we perhaps extend this so when the filename of the destination is the same as the filename in the source (the most common case) that we also remove it? REPOSITORY R120 Plasma Workspace REVISION DETAIL https://phabricator.kde.org/D5926 To: droserasprout, #plasma Cc: broulik, davidedmundson, plasma-devel, ZrenBot, spstarr, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas