If you choose xtd::io::search_option::all_directories in your search and the directory structure contains a link that creates a loop, the search operation enters an infinite loop.
Enumerator
top_directory_only
Includes only the current directory in a search operation.
all_directories
Includes the current directory and all its subdirectories in a search operation. This option includes reparse points such as mounted drives and symbolic links in the search.