Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit 6796235

Browse files
committed
Removed itemMetadata call during delete in crypto decorator
1 parent 79b13a7 commit 6796235

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/cryptomator/cloudaccess/vaultformat8/VaultFormat8ProviderDecorator.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,7 @@ public CompletionStage<CloudPath> createFolder(CloudPath folder) {
178178

179179
@Override
180180
public CompletionStage<Void> deleteFile(CloudPath file) {
181-
return itemMetadata(file) //
182-
.thenCompose(cloudNode -> getC9rPath(file)) //
181+
return getC9rPath(file) //
183182
.thenCompose(ciphertextPath -> {
184183
fileHeaderCache.evict(ciphertextPath);
185184
return delegate.deleteFile(ciphertextPath);
@@ -188,8 +187,7 @@ public CompletionStage<Void> deleteFile(CloudPath file) {
188187

189188
@Override
190189
public CompletionStage<Void> deleteFolder(CloudPath folder) {
191-
return itemMetadata(folder) //
192-
.thenCompose(cloudNode -> deleteCiphertextDir(getDirPathFromClearTextDir(folder))) //
190+
return deleteCiphertextDir(getDirPathFromClearTextDir(folder)) //
193191
.thenCompose(ignored -> getC9rPath(folder)) //
194192
.thenCompose(delegate::deleteFolder) //
195193
.thenRun(() -> dirIdCache.evictIncludingDescendants(folder));

0 commit comments

Comments
 (0)