mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
msd: absolute real path
This commit is contained in:
parent
47fdafb495
commit
dbe55ea591
@ -123,7 +123,7 @@ def explore_device(device_path: str) -> Optional[MassStorageDeviceInfo]:
|
||||
|
||||
return MassStorageDeviceInfo( # type: ignore
|
||||
path=device_path,
|
||||
real=(os.readlink(device_path) if os.path.islink(device_path) else device_path),
|
||||
real=os.path.realpath(device_path),
|
||||
size=size,
|
||||
**disk_meta,
|
||||
**{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user