parameters: (workspace: str, directories_list: list)
docstring: In dandere2x's context file, there's a list of directories
docstring_summary: In dandere2x's context file, there's a list of directories
docstring_tokens: In dandere2x s context file there s a list of directories
function: def create_directories(workspace: str, directories_list: list):
      """
      In dandere2x's context file, there's a list of directories"""
      log = logging.getLogger()
      log.info("Creating directories. Starting with %s first" % workspace)
  
      # need to create workspace first or else subdirectories wont get made correctly
      try:
          os.makedirs(workspace)
      except:
          log.warning("Creation of directory %s failed.. dandere2x may still work but be advised. " % workspace)
      # create each directory
      for subdirectory in directories_list:
          try:
              os.makedirs(subdirectory)
          except OSError:
              log.warning("Creation of the directory %s failed.. dandere2x may still work but be advised. " % workspace)
          else:
              log.info("Successfully created the directory %s " % subdirectory)
function_tokens: def create_directories ( workspace : str , directories_list : list ) : log = logging . getLogger ( ) log . info ( "Creating directories. Starting with %s first" % workspace ) # need to create workspace first or else subdirectories wont get made correctly try : os . makedirs ( workspace ) except : log . warning ( "Creation of directory %s failed.. dandere2x may still work but be advised. " % workspace ) # create each directory for subdirectory in directories_list : try : os . makedirs ( subdirectory ) except OSError : log . warning ( "Creation of the directory %s failed.. dandere2x may still work but be advised. " % workspace ) else : log . info ( "Successfully created the directory %s " % subdirectory )