Function git_repository::path::realpath_opts
source · pub fn realpath_opts(
path: impl AsRef<Path>,
cwd: impl AsRef<Path>,
max_symlinks: u8
) -> Result<PathBuf, Error>
Expand description
The same as realpath()
, but allow to configure max_symlinks
to configure how many symbolic links we are going to follow.
This serves to avoid running into cycles or doing unreasonable amounts of work.