[−][src]Function ichwh::symlink_chain
pub async fn symlink_chain<'_>(bin: &'_ str) -> IchwhResult<Vec<PathBuf>>
Find a binary and, if it's a symlink, all intermediate files in its chain. Returns an ordered
Vec
, with the first simlink at index 0 and the final binary at the end. If a symlink is
encountered with a relative path, it assumes the path is relative to the symlink's parent.