Skip to main content

fs_owner_group

Function fs_owner_group 

Source
pub async fn fs_owner_group(path: &Path) -> (Option<String>, Option<String>)
Expand description

Returns the filesystem owner username and group name for path.

Tries GNU stat -c "%U\n%G" (Linux/coreutils) then BSD stat -f "%Su\n%Sg" (macOS). Returns (None, None) if both fail or the path is inaccessible.