Le 05/06/2019 à 12:49, José Abílio Matos a écrit :
On Wednesday, 5 June 2019 10.55.11 WEST Jean-Marc Lasgouttes wrote:
I hope this change can be considered for inclusion in a future LyX
version.

Regards,
Michael

The problem with this approach is the same problem that we have when
traversing a path following links. We need to ensure that we do not get into a
cyclic graph or else the program will enter an infinite cycle.

 From the python documentation:

https://docs.python.org/3/library/os.html#os.walk
Note

Be aware that setting followlinks to True can lead to infinite recursion if a
link points to a parent directory of itself. walk() does not keep track of the
directories it visited already.

Michael,

It seems that the thing to do is to keep track of visited directories, like here for example:
https://stackoverflow.com/questions/36977259/avoiding-infinite-recursion-with-os-walk

Could you have a go at it? Unless José beats you to it...

JMarc

Reply via email to