понедельник, 15 апреля 2019 г., 20:06:40 UTC+3 пользователь Stefan написал:
> Sorry, but no. Because it's the Windows API that's recursing indefinitely when trying to return a file list.
Windows API is not a monolithic, it has functions like find_first/find_next, when you decide what to do next before continue a search. And it should not have to detect recursion on it's own. The developer should decide when to stop or continue.
It's like a travel through a tree nodes before a realize when you are actually in a graf (or a tree has a cycles).