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)
if os.path.exists(dir_path):
return
# call recursively to check entire path exists
self.ensure_directory(dir_path)
try:
os.mkdir(dir_path)

Loading…
Cancel
Save