mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2026-01-22 17:16:11 +00:00
Showing info for Source if no disks were recognized.
This commit is contained in:
@@ -43,6 +43,9 @@ public class InfoCommand extends ReadOnlyDiskContextCommandOptions {
|
||||
public int handleCommand() throws Exception {
|
||||
LOG.info(() -> "Path: " + context().source.getName());
|
||||
if (selectedDisks().isEmpty()) {
|
||||
for (Information info : context().source.information()) {
|
||||
System.out.printf("%s: %s\n", info.label(), info.value());
|
||||
}
|
||||
List<TrackSectorDevice> devices = context().trackSectorDevice()
|
||||
.include13Sector()
|
||||
.include16Sector(Hint.DOS_SECTOR_ORDER)
|
||||
|
||||
Reference in New Issue
Block a user