def mkdir_p(path):
try:<EOL><INDENT>os.makedirs(path)<EOL><DEDENT>except OSError as e:<EOL><INDENT>if e.errno == errno.EEXIST and os.path.isdir(path):<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>bot.error("<STR_LIT>" % path)<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT><DEDENT>
mkdir_p attempts to get the same functionality as mkdir -p
    :param path: the path to create.