utils/path: Make it more clear that we are not following symlinks
This commit is contained in:
parent
d4f47a34c2
commit
369edab76d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user