code: def makedirs(self):
          
          normpath = os.path.normpath(self.path)
          parentfolder = os.path.dirname(normpath)
          if parentfolder:
              try:
                  os.makedirs(parentfolder)
              except OSError:
                  pass
docs: Create all parent folders if they do not exist.