From dfa0d648f985a58ad536b3dc5bdbaf5ea20438b0 Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 2 Jan 2013 21:39:14 +0100 Subject: [PATCH] scanner: Support symlinks --- docs/changes.rst | 4 ++++ mopidy/utils/path.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changes.rst b/docs/changes.rst index 89707b6a..fba9b80e 100644 --- a/docs/changes.rst +++ b/docs/changes.rst @@ -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) ==================== diff --git a/mopidy/utils/path.py b/mopidy/utils/path.py index c4fa0ce2..7d988a90 100644 --- a/mopidy/utils/path.py +++ b/mopidy/utils/path.py @@ -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