pub fn stat(path: &str) -> Result<FileStat>
Retrieves metadata for a file or directory at a given path.