fungus::sys
pub fn uid<T: AsRef<Path>>(path: T) -> FuResult<u32>
Returns the user ID of the owner of this file. Handles path expansion.
use fungus::prelude::*; assert_eq!(sys::uid("/etc").unwrap(), 0);