Skip to content

Commit

Permalink
Conventions: Ignore broken symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Jan 8, 2019
1 parent 2e90014 commit ede735a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/conventions/analyze_src.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def main():
for fn in files:
absfn = path.join(root, fn)
shortfn = absfn[len(cp2k_dir):]
if(not path.exists(absfn)):
continue # skip broken symlinks
content = open(absfn).read()
if('\0' in content):
continue # skip binary files
Expand Down

0 comments on commit ede735a

Please sign in to comment.