[−][src]Function ichwh::symlink_chain_in_dir
pub async fn symlink_chain_in_dir<'_, P: AsRef<Path>>(
bin: &'_ str,
dir: P
) -> IchwhResult<Vec<PathBuf>>
Find a binary in a specific directory 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.