statblk 1.22__py3-none-any.whl → 1.23__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statblk
3
- Version: 1.22
3
+ Version: 1.23
4
4
  Summary: Gather essential disk and partition info for block devices and print it in a nice table
5
5
  Home-page: https://github.com/yufei-pan/statblk
6
6
  Author: Yufei Pan
@@ -0,0 +1,6 @@
1
+ statblk.py,sha256=x1A2ApJusueQjPRXKJnjfoScjtjv6wtysdDMKlL1jKI,27300
2
+ statblk-1.23.dist-info/METADATA,sha256=tA7bFzT0XfgZioOKPz1kmt1jWmNybpxv8N_9vXC63FI,1465
3
+ statblk-1.23.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ statblk-1.23.dist-info/entry_points.txt,sha256=JDz-sa6FIdaOckmlz9NbnhZXQaB5Yle-cTKgUQmAV40,41
5
+ statblk-1.23.dist-info/top_level.txt,sha256=dBdU6_PD4tG_7uquWEs6YremqudiePASv3u3G59scf4,8
6
+ statblk-1.23.dist-info/RECORD,,
statblk.py CHANGED
@@ -276,7 +276,7 @@ except :
276
276
  def cache_decorator(func):
277
277
  return func
278
278
 
279
- version = '1.22'
279
+ version = '1.23'
280
280
  VERSION = version
281
281
  __version__ = version
282
282
  COMMIT_DATE = '2025-09-10'
@@ -526,6 +526,8 @@ def get_drives_info(print_bytes = False, use_1024 = False, mounted_only=False, b
526
526
  if lsblk_result.returncode == 0:
527
527
  for line in lsblk_result.stdout:
528
528
  lsblk_name, lsblk_size, lsblk_fstype, lsblk_uuid, lsblk_label = line.split(' ', 4)
529
+ if lsblk_name.startswith(os.path.sep):
530
+ lsblk_name = os.path.realpath(lsblk_name)
529
531
  # the label can be \x escaped, we need to decode it
530
532
  lsblk_uuid = bytes(lsblk_uuid, "utf-8").decode("unicode_escape")
531
533
  lsblk_fstype = bytes(lsblk_fstype, "utf-8").decode("unicode_escape")
@@ -1,6 +0,0 @@
1
- statblk.py,sha256=C8_7zjjE0b5hKj7GtK73jXcQcaRr96uhtWb-RDenPug,27212
2
- statblk-1.22.dist-info/METADATA,sha256=rVGQOV-ggZp3EHWxPqm9dp7ZaSWfYUkdhaPmhz0P-Cg,1465
3
- statblk-1.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
- statblk-1.22.dist-info/entry_points.txt,sha256=JDz-sa6FIdaOckmlz9NbnhZXQaB5Yle-cTKgUQmAV40,41
5
- statblk-1.22.dist-info/top_level.txt,sha256=dBdU6_PD4tG_7uquWEs6YremqudiePASv3u3G59scf4,8
6
- statblk-1.22.dist-info/RECORD,,
File without changes