Show filesystem type in select_disk_parts()
This commit is contained in:
parent
d94e9097b7
commit
21cbe5d445
1 changed files with 4 additions and 1 deletions
|
|
@ -194,10 +194,13 @@ def select_disk_parts(prompt_msg, disk) -> list[Disk]:
|
|||
# Add parts
|
||||
whole_disk_str = f'{str(disk.path):<14} (Whole device)'
|
||||
for part in disk.children:
|
||||
fstype = part.get('fstype', '')
|
||||
fstype = str(fstype) if fstype else ''
|
||||
size = part["size"]
|
||||
name = (
|
||||
f'{str(part["path"]):<14} '
|
||||
f'({bytes_to_string(size, decimals=1, use_binary=False):>6})'
|
||||
f'{fstype.upper():<5} '
|
||||
f'({bytes_to_string(size, decimals=1, use_binary=True):>6})'
|
||||
)
|
||||
menu.add_option(name, details={'Selected': True, 'pathlib.Path': part['path']})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue