From 369edab76d884f3a1abae22ac16977a762ffe106 Mon Sep 17 00:00:00 2001 From: Thomas Adamcik Date: Fri, 17 Oct 2014 20:08:12 +0200 Subject: [PATCH] utils/path: Make it more clear that we are not following symlinks --- mopidy/utils/path.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mopidy/utils/path.py b/mopidy/utils/path.py index f60eff59..be735ae5 100644 --- a/mopidy/utils/path.py +++ b/mopidy/utils/path.py @@ -147,8 +147,10 @@ def _find_worker(relative, follow, done, work, results, errors): work.put((os.path.join(entry, e), parents)) elif stat.S_ISREG(st.st_mode): results[path] = st + elif stat.S_ISLNK(st.st_mode): + errors[path] = Exception('Not following symlinks.') else: - errors[path] = Exception('Not a file or directory') + errors[path] = Exception('Not a file or directory.') except OSError as e: errors[path] = e