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

Method virtual_to_host_path

qiling/os/path.py:311–324  ·  view source on GitHub ↗

Convert a virtual path to its corresponding path on the hosting system. Args: virtpath : path on the emulated system. the path may be either absolute or relative Returns: the corresponding path on the hosting system

(self, virtpath: str)

Source from the content-addressed store, hash-verified

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.
313
314 Args:
315 virtpath : path on the emulated system. the path may be either absolute
316 or relative
317
318 Returns: the corresponding path on the hosting system
319 """
320
321 absvpath = self.__virtual_resolve(virtpath)
322 hostpath = self.__virtual_to_host_path(absvpath)
323
324 return str(hostpath)
325
326 def is_safe_host_path(self, hostpath: str) -> bool:
327 hpath = Path(hostpath)

Callers 15

nt_to_nativeFunction · 0.95
posix_to_nativeFunction · 0.95
handle_vMethod · 0.80
__open_newMethod · 0.80
file_existsMethod · 0.80
runMethod · 0.80
_GetTempPathFunction · 0.80
hook_CreateDirectoryAFunction · 0.80
hook_CopyFileAFunction · 0.80
_DeleteFileFunction · 0.80
ql_syscall_chmodFunction · 0.80
ql_syscall_mkdirFunction · 0.80

Calls 2

__virtual_resolveMethod · 0.95

Tested by 7

nt_to_nativeFunction · 0.76
posix_to_nativeFunction · 0.76
test_syscall_openMethod · 0.64
test_syscall_openatMethod · 0.64
test_syscall_unlinkMethod · 0.64
test_syscall_unlinkatMethod · 0.64
test_syscall_truncateMethod · 0.64