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

Method has_mapping

qiling/os/mapper.py:76–85  ·  view source on GitHub ↗

Check whether a specific virtrual path has a binding. Args: vpath: virtual path name to check Returns: `True` if the specified virtual path has been bound, `False` otherwise.

(self, vpath: str)

Source from the content-addressed store, hash-verified

74 return absvpath in self._mapping
75
76 def has_mapping(self, vpath: str) -> bool:
77 """Check whether a specific virtrual path has a binding.
78
79 Args:
80 vpath: virtual path name to check
81
82 Returns: `True` if the specified virtual path has been bound, `False` otherwise.
83 """
84
85 return vpath in self
86
87 def __len__(self) -> int:
88 return len(self._mapping)

Callers 15

open_ql_fileMethod · 0.95
openMethod · 0.95
file_existsMethod · 0.95
add_mappingMethod · 0.95
remove_mappingMethod · 0.95
rename_mappingMethod · 0.95
handle_vMethod · 0.80
handlerFunction · 0.80
__leaf_02Function · 0.80
__leaf_08Function · 0.80
__leaf_42Function · 0.80
__leaf_43Function · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected