Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
filter out floppy disks
Browse files Browse the repository at this point in the history
Signed-off-by: axtloss <[email protected]>
  • Loading branch information
axtloss authored and Michal S committed Sep 26, 2022
1 parent 84b17d2 commit b77dd6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/disks.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def get_disks():
output = [x for x in output if 'NAME' not in x]
output = [x for x in output if 'loop' not in x]
output = [x for x in output if 'sr' not in x]
output = [x for x in output if 'fd' not in x]
return output

def get_disk_size(disk: str):
Expand Down

0 comments on commit b77dd6d

Please sign in to comment.