utils/path: Make it more clear that we are not following symlinks

This commit is contained in:
Thomas Adamcik 2014-10-17 20:08:12 +02:00
parent d4f47a34c2
commit 369edab76d

View File

@ -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