Function uucore::fs::is_symlink_loop
source · pub fn is_symlink_loop(path: &Path) -> boolExpand description
Checks if there is a symlink loop in the given path.
A symlink loop is a chain of symlinks where the last symlink points back to one of the previous symlinks in the chain.
Arguments
path- A reference to aPathrepresenting the starting path to check for symlink loops.
Returns
bool- Returnstrueif a symlink loop is detected,falseotherwise.