mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2026-04-24 13:16:40 +00:00
FileUtils::copyDirectory() ignores deleted files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user