mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-11-06 08:53:02 +03:00
pySim-shell: improve command "desc"
The "desc" command displays a string with a file description, let's also display some size information as part of the description as well. Related: OS#5714 Change-Id: I98e139ba2bf35df5524245cdd96f5c52cf09b986
This commit is contained in:
1 parent
6942a40909
commit
d5ddd04f33
2 files changed
+28
-3
No files matched your search
@@ -217,6 +217,12 @@ class RuntimeLchan:
|
||||
def selected_file_size(self) -> Optional[int]:
|
||||
return self.selected_file_fcp.get('file_size')
|
||||
|
||||
def selected_file_reserved_file_size(self) -> Optional[int]:
|
||||
return self.selected_file_fcp['proprietary_information'].get('reserved_file_size')
|
||||
|
||||
def selected_file_maximum_file_size(self) -> Optional[int]:
|
||||
return self.selected_file_fcp['proprietary_information'].get('maximum_file_size')
|
||||
|
||||
def get_cwd(self) -> CardDF:
|
||||
"""Obtain the current working directory.
|
||||
|
||||
|
||||
Reference in new issue
Block a user