Library scanning: a directory with a link to itself scans forever
Environment
- Lollypop version: 1.4.28
- GTK+ version: I don't know, shouldn't be relevant
- Operating system: Manjaro Linux
Bug
Lollypop's library scanner gets stuck on recursive symbolic links.
I accidentally created a symbolic link in an album directory "Cool-Album" that pointed to itself (e.g. Music/Cool-Album/Cool-Album/Cool-Album/Cool-Album...). When Lollypop scanned Cool-Album, it read the same songs thousands of times. I had to go into the sqlite database and destroy the extra records since Lollypop couldn't recover by itself, even after I deleted the symlink.
Non-obvious symlink loops could probably be considered user error, but it would be handy if Lollypop could at least identify a basic set of them, like a folder that points to the folder it's contained in.