MCPcopy Create free account
hub / github.com/qilingframework/qiling / virtual_abspath

Method virtual_abspath

qiling/os/path.py:297–309  ·  view source on GitHub ↗

Convert a relative virtual path to an absolute virtual path based on the current working directory. Args: virtpath : relative virtual path Returns: the absolute virtual path

(self, virtpath: str)

Source from the content-addressed store, hash-verified

295 return vpath.is_absolute()
296
297 def virtual_abspath(self, virtpath: str) -> str:
298 """Convert a relative virtual path to an absolute virtual path based
299 on the current working directory.
300
301 Args:
302 virtpath : relative virtual path
303
304 Returns: the absolute virtual path
305 """
306
307 absvpath = self.__virtual_abspath(virtpath)
308
309 return str(absvpath)
310
311 def virtual_to_host_path(self, virtpath: str) -> str:
312 """Convert a virtual path to its corresponding path on the hosting system.

Callers 15

handle_vMethod · 0.80
__contains__Method · 0.80
open_ql_fileMethod · 0.80
openMethod · 0.80
add_mappingMethod · 0.80
remove_mappingMethod · 0.80
rename_mappingMethod · 0.80
ql_unix_socket_pathFunction · 0.80
ql_syscall_readlinkFunction · 0.80
ql_syscall_chdirFunction · 0.80
ql_syscall_unlinkFunction · 0.80
ql_syscall_openFunction · 0.80

Calls 1

__virtual_abspathMethod · 0.95

Tested by

no test coverage detected