Merge pull request #11 from ekimekim/chrusher/comment

Added a comment to highlight recursion
pull/15/head
Christopher Usher 6 years ago committed by GitHub
commit 84097f4bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -437,6 +437,7 @@ class SegmentGetter(object):
dir_path = os.path.dirname(path) dir_path = os.path.dirname(path)
if os.path.exists(dir_path): if os.path.exists(dir_path):
return return
# call recursively to check entire path exists
self.ensure_directory(dir_path) self.ensure_directory(dir_path)
try: try:
os.mkdir(dir_path) os.mkdir(dir_path)

Loading…
Cancel
Save