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`)
|
- Let GStreamer handle time position tracking and seeks. (Fixes: :issue:`191`)
|
||||||
|
|
||||||
|
**Local backend**
|
||||||
|
|
||||||
|
- Make ``mopidy-scan`` support symlinks.
|
||||||
|
|
||||||
|
|
||||||
v0.11.0 (2012-12-24)
|
v0.11.0 (2012-12-24)
|
||||||
====================
|
====================
|
||||||
|
|||||||
@ -120,7 +120,7 @@ def find_files(path):
|
|||||||
if not os.path.basename(path).startswith(b'.'):
|
if not os.path.basename(path).startswith(b'.'):
|
||||||
yield path
|
yield path
|
||||||
else:
|
else:
|
||||||
for dirpath, dirnames, filenames in os.walk(path):
|
for dirpath, dirnames, filenames in os.walk(path, followlinks=True):
|
||||||
for dirname in dirnames:
|
for dirname in dirnames:
|
||||||
if dirname.startswith(b'.'):
|
if dirname.startswith(b'.'):
|
||||||
# Skip hidden folders by modifying dirnames inplace
|
# Skip hidden folders by modifying dirnames inplace
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user