pub fn metadata<P: AsRef<Path>>(path: P) -> Result<FileStat, ApiError>
Given a path, query the file system to get information about a file, directory, etc.