MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / stat

Function stat

src/fs/abs.rs:78–80  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

76/// [`FileType::from_raw_mode`]: crate::fs::FileType::from_raw_mode
77#[inline]
78pub fn stat<P: path::Arg>(path: P) -> io::Result<Stat> {
79 path.into_with_c_str(backend::fs::syscalls::stat)
80}
81
82/// `lstat(path)`—Queries metadata for a file or directory, without following
83/// symlinks.

Callers 5

test_chmodFunction · 0.50
test_mkdirFunction · 0.50
test_renameFunction · 0.50
negative_file_timestampFunction · 0.50

Calls 1

into_with_c_strMethod · 0.80

Tested by 5

test_chmodFunction · 0.40
test_mkdirFunction · 0.40
test_renameFunction · 0.40
negative_file_timestampFunction · 0.40