Function std::fs::symlink_metadata [] [src]

pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>

Query the metadata about a file without following symlinks.

Examples

fn main() { fn foo() -> std::io::Result<()> { use std::fs; let attr = try!(fs::symlink_metadata("/some/file/path.txt")); // inspect attr ... Ok(()) } }
use std::fs;

let attr = try!(fs::symlink_metadata("/some/file/path.txt"));
// inspect attr ...