scanner: Support symlinks
This commit is contained in:
parent
fb8e96bbf0
commit
dfa0d648f9
@ -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)
|
||||
====================
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user