mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-08-14 08:25:44 +00:00
ImportCommand - ignore deleted file entries
This commit is contained in:
@@ -92,6 +92,7 @@ public class ImportCommand extends ReadWriteDiskCommandOptions {
|
||||
for (String dir : dirs) {
|
||||
Optional<FileEntry> fileEntry = directory.getFiles().stream()
|
||||
.filter(f -> dir.equalsIgnoreCase(f.getFilename()))
|
||||
.filter(f -> !f.isDeleted())
|
||||
.findFirst();
|
||||
Optional<DirectoryEntry> dirEntry = fileEntry
|
||||
.filter(FileEntry::isDirectory)
|
||||
|
Reference in New Issue
Block a user