MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / open

Method open

euralios_std/src/fs.rs:167–169  ·  view source on GitHub ↗

Opens a file at `path` with the options specified by `self`.

(&self, path: P)

Source from the content-addressed store, hash-verified

165 /// Opens a file at `path` with the options specified by `self`.
166 ///
167 pub fn open<P: AsRef<Path>>(&self, path: P) -> Result<File, SyscallError> {
168 self._open(path.as_ref())
169 }
170
171 fn _open(&self, path: &Path) -> Result<File, SyscallError> {
172 let flags = message::O_READ +

Callers 1

create_dirFunction · 0.45

Calls 8

current_dirFunction · 0.85
_openMethod · 0.80
is_relativeMethod · 0.80
as_os_strMethod · 0.80
openFunction · 0.70
FileClass · 0.70
as_refMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected