mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-22 08:30:35 +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]);
|
final String pathName = formattedDisk.getSuggestedFilename(paths[i]);
|
||||||
Optional<FileEntry> optEntry = directory.getFiles().stream()
|
Optional<FileEntry> optEntry = directory.getFiles().stream()
|
||||||
.filter(entry -> entry.getFilename().equalsIgnoreCase(pathName))
|
.filter(entry -> entry.getFilename().equalsIgnoreCase(pathName))
|
||||||
|
.filter(entry -> !entry.isDeleted())
|
||||||
.findFirst();
|
.findFirst();
|
||||||
|
|
||||||
if (optEntry.isPresent()) {
|
if (optEntry.isPresent()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user