mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-12-28 02:32:00 +00:00
Merge pull request #96 from ThomasFok/fix/mkdir
acx - Filter out deleted file entries in MkdirCommand
This commit is contained in:
commit
09053d699b
@ -49,6 +49,7 @@ public class MkdirCommand extends ReadWriteDiskCommandOptions {
|
||||
final String pathName = formattedDisk.getSuggestedFilename(paths[i]);
|
||||
Optional<FileEntry> optEntry = directory.getFiles().stream()
|
||||
.filter(entry -> entry.getFilename().equalsIgnoreCase(pathName))
|
||||
.filter(entry -> !entry.isDeleted())
|
||||
.findFirst();
|
||||
|
||||
if (optEntry.isPresent()) {
|
||||
|
Loading…
Reference in New Issue
Block a user