scanner: Support symlinks

This commit is contained in:
Stein Magnus Jodal 2013-01-02 21:39:14 +01:00
parent fb8e96bbf0
commit dfa0d648f9
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,10 @@ v0.12.0 (in development)
- Let GStreamer handle time position tracking and seeks. (Fixes: :issue:`191`)
**Local backend**
- Make ``mopidy-scan`` support symlinks.
v0.11.0 (2012-12-24)
====================

View File

@ -120,7 +120,7 @@ def find_files(path):
if not os.path.basename(path).startswith(b'.'):
yield path
else:
for dirpath, dirnames, filenames in os.walk(path):
for dirpath, dirnames, filenames in os.walk(path, followlinks=True):
for dirname in dirnames:
if dirname.startswith(b'.'):
# Skip hidden folders by modifying dirnames inplace