Function uucore::fs::is_symlink_loop

source ·
pub fn is_symlink_loop(path: &Path) -> bool
Expand 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 a Path representing the starting path to check for symlink loops.

Returns

  • bool - Returns true if a symlink loop is detected, false otherwise.