Added a comment to highlight recursion

pull/11/head
Christopher Usher 6 years ago
parent 62b184e333
commit efe30c1942

@ -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