mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-21 17:29:55 +00:00
RmdirCommand - ignore deleted file entries
This commit is contained in:
parent
8ca3e27fc4
commit
931804558e
@ -54,6 +54,7 @@ public class RmdirCommand extends ReadWriteDiskCommandOptions {
|
||||
final String pathName = formattedDisk.getSuggestedFilename(paths[i]);
|
||||
Optional<FileEntry> optEntry = directory.getFiles().stream()
|
||||
.filter(entry -> entry.getFilename().equalsIgnoreCase(pathName))
|
||||
.filter(entry -> !entry.isDeleted())
|
||||
.findFirst();
|
||||
|
||||
if (optEntry.isPresent()) {
|
||||
|
Loading…
Reference in New Issue
Block a user