scandir_recursive is used to find shader files in one's shader directory. It has various issues that will probably only occur for less than 0.1% of users:
It should find and return files higher up the directory tree first via breadth-first search, but instead it does a reverse pre-order depth-first search. This can have various performance and resource usage implications in niche situations.
It doesn't properly handle cases where a symlink to a directory higher in the tree (e.g. a node is its own ancestor) causes an infinite loop which only breaks due to max_depth.
scandir_recursive
is used to find shader files in one's shader directory. It has various issues that will probably only occur for less than 0.1% of users:max_depth
.https://github.com/loqusion/hyprshade/blob/b6de0db1463bb1b5c50311f91667f283a58988dd/src/hyprshade/utils.py#L19-L34