aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-27 17:42:31 +0200
committerFerdinand Thiessen <opensource@fthiessen.de>2024-08-27 19:40:38 +0200
commit988ea85f485f055db82c1ccae3f8640eb723c4df (patch)
tree24c1130b36e880575ba6d98c7cec525301497e17 /apps/files/src
parenta51e04110f4a6ceab57005a8117c19e02d75683b (diff)
downloadnextcloud-server-988ea85f485f055db82c1ccae3f8640eb723c4df.tar.gz
nextcloud-server-988ea85f485f055db82c1ccae3f8640eb723c4df.zip
fix(files): Correctly check for already used names when creating new folder
Also add Cypress tests for the "new"-menu. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/views/FilesList.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/src/views/FilesList.vue b/apps/files/src/views/FilesList.vue
index 03cc60e30c0..70c9a38607e 100644
--- a/apps/files/src/views/FilesList.vue
+++ b/apps/files/src/views/FilesList.vue
@@ -243,7 +243,7 @@ export default defineComponent({
// as the path is allowed to be undefined we need to normalize the path ('//' to '/')
const normalizedPath = normalize(`${this.currentFolder?.path ?? ''}/${path ?? ''}`)
// Try cache first
- const nodes = this.filesStore.getNodesByPath(view.id, path)
+ const nodes = this.filesStore.getNodesByPath(view.id, normalizedPath)
if (nodes.length > 0) {
return nodes
}