def create_folder(self, folder):
if folder.endswith("<STR_LIT:/>"):<EOL><INDENT>folder = folder[:-<NUM_LIT:1>]<EOL><DEDENT>if len(folder) < <NUM_LIT:1>:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>if not os.path.exists(folder):<EOL><INDENT>try:<EOL><INDENT>os.makedirs(folder)<EOL><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>
Creates a folder of the given name if it doesn't already exist.