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

Method open

qiling/os/mapper.py:135–139  ·  view source on GitHub ↗
(self, vpath: str, mode: str)

Source from the content-addressed store, hash-verified

133 return opener(absvpath, ql_file.open, flags, mode)
134
135 def open(self, vpath: str, mode: str):
136 absvpath = self.path.virtual_abspath(vpath)
137 opener = self.__open_mapped if self.has_mapping(absvpath) else self.__open_new
138
139 return opener(absvpath, open, mode)
140
141 def file_exists(self, vpath: str) -> bool:
142 """Check whether a file exists on the virtual file system.

Callers 7

create_empty_fileMethod · 0.95
handle_qMethod · 0.45
handle_vMethod · 0.45
OnFormChangeMethod · 0.45
OnFormChangeMethod · 0.45

Calls 2

has_mappingMethod · 0.95
virtual_abspathMethod · 0.80

Tested by 1