Symlinks cause files to be added to the library multiple times
Bug #406050 reported by
Thomas Zander
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Low
|
Unassigned | ||
Bug Description
This affects exaile-0.3.
I happen to organise a few files in my library using symlinks. These files get imported as different files several times when the collection is scanned. When I drop a file which exists (due to this issue) several times in exaile's collection onto a new playlist, it gets added multiple times: Once for each link in the watched folders tree that points to the file, and it's not possible to add a file like this only once.
The attached tiny patch resolves this problem by ignoring symlinks to files when a collection is scanned.
Changed in exaile: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
hm, this is somewhat tricky, since ignoring links means that people who use symlinks to merge in parts of their collection (eg. if its spread across multiple partitions) would lose functionality. Perhaps its best to simply follow the link, and if it results in a path inside the library root, we ignore it, and otherwise treat it normally.