[go: up one dir, main page]

is_symlink_loop

Function 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.