mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-18 04:34:25 +00:00
FileUtils::copyFile() - ignore deleted files
This commit is contained in:
parent
931804558e
commit
492d0633d9
@ -89,6 +89,7 @@ public class FileUtils {
|
||||
String sanitizedName = directory.getFormattedDisk().getSuggestedFilename(sourceName);
|
||||
final Optional<FileEntry> fileEntry = directory.getFiles().stream()
|
||||
.filter(entry -> entry.getFilename().equals(sanitizedName))
|
||||
.filter(entry -> !entry.isDeleted())
|
||||
.findFirst();
|
||||
|
||||
final FileEntry targetFile;
|
||||
|
Loading…
x
Reference in New Issue
Block a user