mirror of
https://github.com/platomav/BIOSUtilities.git
synced 2025-05-14 15:15:03 -04:00
BIOSUtilities v25.02.23
Fixed AMI PFAT Extract file naming of "ALL" and "OOB" Upgraded dependency "dissect.util" from 3.18 to 3.19
This commit is contained in:
parent
5f9ea8e846
commit
40553b3244
9 changed files with 26 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
|||
# coding=utf-8
|
||||
|
||||
"""
|
||||
Copyright (C) 2022-2024 Plato Mavropoulos
|
||||
Copyright (C) 2022-2025 Plato Mavropoulos
|
||||
"""
|
||||
|
||||
import os
|
||||
|
@ -99,9 +99,7 @@ def path_name(in_path: str, limit: bool = False) -> str:
|
|||
|
||||
comp_name: str = PurePath(in_path).name
|
||||
|
||||
is_win: bool = system_platform()[1]
|
||||
|
||||
if limit and is_win:
|
||||
if limit and system_platform()[1]:
|
||||
comp_name = comp_name[:MAX_WIN_COMP_LEN - len(extract_suffix())]
|
||||
|
||||
return comp_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue