Skip to content

Commit

Permalink
Warn on ignored symlinks to directories
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed May 24, 2021
1 parent edb49c6 commit 6feb792
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 6feb792

Please sign in to comment.