Skip to content
Snippets Groups Projects
Commit c77cd7ac authored by Karl Fogel's avatar Karl Fogel
Browse files

Skip symlinks correctly

This fixes a bug from commit 2b193133.  In that commit, former loop
code that had used a 'continue' to skip symlinks was moved into an
inner function, which should have used 'return' to effect the same
skip but instead mistakenly used 'pass'.
parent 5d294365
No related branches found
No related tags found
No related merge requests found
......@@ -213,7 +213,7 @@ count them as duplicates."""
else:
this_file_path = f
if os.path.islink(this_file_path):
pass # symlinks are not interesting to us; skip them
return # symlinks are not interesting to us; skip them
this_file_stat = os.stat(this_file_path)
if ignore_empty and this_file_stat.st_size == 0:
pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment