Skip to content

Commit

Permalink
Merge pull request #16505 from iterate-ch/bugfix/GH-14101
Browse files Browse the repository at this point in the history
Fix #14101.
  • Loading branch information
dkocher authored Nov 7, 2024
2 parents b40b014 + a00f520 commit 38336d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/ch/cyberduck/core/worker/DeleteWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public List<Path> run(final Session<?> session) throws BackgroundException {
}
// Iterate again to delete any files that can be omitted when recursive operation is supported
if(delete.isRecursive()) {
recursive.keySet().removeIf(f -> recursive.keySet().stream().anyMatch(f::isChild));
recursive.keySet().removeIf(f -> !f.getType().contains(Path.Type.decrypted) && recursive.keySet().stream().anyMatch(f::isChild));
}
final HostPreferences preferences = new HostPreferences(session.getHost());
if(preferences.getBoolean("versioning.enable") && preferences.getBoolean("versioning.delete.enable")) {
Expand Down Expand Up @@ -177,7 +177,7 @@ protected Map<Path, TransferStatus> compile(final Delete delete, final ListServi
recursive.put(file, new TransferStatus().withLockId(this.getLockId(file)));
}
else if(file.isDirectory()) {
if(!delete.isRecursive()) {
if(!delete.isRecursive() || file.getType().contains(Path.Type.decrypted)) {
for(Path child : list.list(file, listener).filter(filter)) {
if(this.isCanceled()) {
throw new ConnectionCanceledException();
Expand Down

0 comments on commit 38336d1

Please sign in to comment.