normalize_path


Description:

protected string normalize_path (string path, int depth = 0)

Normalizes a path for consistent storage and lookup. If relative_path is set, converts relative paths to absolute using that base path. Always resolves symlinks regardless of relative_path setting.

Parameters:

path

The path to normalize

depth

Current recursion depth (prevents infinite loops from symlink cycles)

Returns:

Normalized path with symlinks resolved