Skip to content

Commit

Permalink
add unknown dir exception
Browse files Browse the repository at this point in the history
  • Loading branch information
ahernot committed Apr 28, 2021
1 parent 537d344 commit 40c3b2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def read_dir (dirpath: str):

def recur (dirpath: str, file_dict: dict):

# Path not existing (error)
if not os.path.exists (dirpath):
return file_dict # INCLUDE IN LOG

# Initialise list of subdirs to parse
subdirs = list()

Expand Down

0 comments on commit 40c3b2b

Please sign in to comment.