mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-02 19:29:17 +00:00
FileUtils::copyDirectory() ignores deleted files
This commit is contained in:
parent
492d0633d9
commit
1a189d6596
@ -56,6 +56,7 @@ public class FileUtils {
|
||||
Optional<FileEntry> targetFile = targetParent.getFiles()
|
||||
.stream()
|
||||
.filter(fileEntry -> name.equals(fileEntry.getFilename()))
|
||||
.filter(fileEntry -> !fileEntry.isDeleted())
|
||||
.findFirst();
|
||||
Optional<DirectoryEntry> targetDir = targetFile
|
||||
.filter(FileEntry::isDirectory)
|
||||
|
Loading…
Reference in New Issue
Block a user