Function std::fs::symlink_metadata
[−]
[src]
pub fn symlink_metadata<P: AsRef<Path>>(path: P) -> Result<Metadata>
Unstable
: recently added API
Query the metadata about a file without following symlinks.
Examples
#![feature(symlink_metadata)] fn main() { fn foo() -> std::io::Result<()> { use std::fs; let attr = try!(fs::symlink_metadata("/some/file/path.txt")); // inspect attr ... Ok(()) } }#![feature(symlink_metadata)] use std::fs; let attr = try!(fs::symlink_metadata("/some/file/path.txt")); // inspect attr ...