def makedir(self, tarinfo, targetpath):
try:<EOL><INDENT>os.mkdir(targetpath, <NUM_LIT>)<EOL><DEDENT>except EnvironmentError as e:<EOL><INDENT>if e.errno != errno.EEXIST:<EOL><INDENT>raise<EOL><DEDENT><DEDENT>
Make a directory called targetpath.