fixed typo EEXISTS is actually EEXIST

fixes #2585
This commit is contained in:
Brian Coca 2015-11-30 07:23:29 -08:00 committed by Matt Clay
parent 0f456d7e61
commit 3025451b10

View file

@ -288,7 +288,7 @@ def main():
except OSError, ex:
# Possibly something else created the dir since the os.path.exists
# check above. As long as it's a dir, we don't need to error out.
if not (ex.errno == errno.EEXISTS and os.isdir(curpath)):
if not (ex.errno == errno.EEXIST and os.isdir(curpath)):
raise
tmp_file_args = file_args.copy()
tmp_file_args['path']=curpath