From 49482b27a15984541e929d6f789c080c88c189cc Mon Sep 17 00:00:00 2001 From: Yves Langisch Date: Thu, 28 Nov 2024 11:32:30 +0100 Subject: [PATCH] No need to normalize levels above Deepbox. --- .../core/deepbox/DeepboxPathContainerService.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deepbox/src/main/java/ch/cyberduck/core/deepbox/DeepboxPathContainerService.java b/deepbox/src/main/java/ch/cyberduck/core/deepbox/DeepboxPathContainerService.java index d8634b87d1a..73b7a024492 100644 --- a/deepbox/src/main/java/ch/cyberduck/core/deepbox/DeepboxPathContainerService.java +++ b/deepbox/src/main/java/ch/cyberduck/core/deepbox/DeepboxPathContainerService.java @@ -70,11 +70,10 @@ public boolean isContainer(final Path file) { } public boolean isCompany(final Path file) { - final Path normalized = fileid.normalize(file); - if(normalized.isRoot()) { + if(file.isRoot()) { return false; } - return normalized.isDirectory() && normalized.getParent().isRoot(); + return file.isDirectory() && file.getParent().isRoot(); } public boolean isSharedWithMe(final Path file) { @@ -214,7 +213,7 @@ protected Path getDeepboxPath(final Path file) { } protected Path getCompanyPath(final Path file) { - Path company = fileid.normalize(file); + Path company = file; while(!company.isRoot() && !this.isCompany(company)) { company = company.getParent(); }