Skip to content

Commit

Permalink
Merge pull request #647 from dandi/gh-641
Browse files Browse the repository at this point in the history
Warn on ignored symlinks to directories
  • Loading branch information
yarikoptic authored May 24, 2021
2 parents edb49c6 + 6feb792 commit 0ac5c97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dandi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,12 @@ def good_file(path):
paths = (op.join(dirpath, name) for name in names)
for path in filter(re.compile(regex).search, paths):
if not exclude_path(path):
yield path
if op.islink(path) and op.isdir(path):
lgr.warning(
"%s: Ignoring unsupported symbolic link to directory", path
)
else:
yield path


_cp_supports_reflink = None
Expand Down

0 comments on commit 0ac5c97

Please sign in to comment.