Recursive creation of missing directories

This commit is contained in:
Joel Collins 2018-11-23 11:17:34 +00:00
parent cf96fa0ad2
commit b73a8f7ec5

View file

@ -107,7 +107,7 @@ class StreamObject(object):
# Create folder and file
if not os.path.exists(self.filefolder):
os.mkdir(self.filefolder)
os.makedirs(self.filefolder)
def split_file_path(self, filepath):
"""Takes a full file path, and splits it into separated class properties."""