[][src]Function fungus::sys::uid

pub fn uid<T: AsRef<Path>>(path: T) -> FuResult<u32>

Returns the user ID of the owner of this file. Handles path expansion.

Examples

use fungus::prelude::*;

assert_eq!(sys::uid("/etc").unwrap(), 0);