From c50ca43d8da334f0d18fd1fae0c4d771b53ab43b Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 22 Feb 2016 12:35:57 -0500 Subject: [PATCH] fixed typo, now correctly check isdir fixes #3089 --- files/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/file.py b/files/file.py index e7beeae87a5..fc77f5094b6 100644 --- a/files/file.py +++ b/files/file.py @@ -309,7 +309,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.EEXIST and os.isdir(curpath)): + if not (ex.errno == errno.EEXIST and os.path.isdir(curpath)): raise tmp_file_args = file_args.copy() tmp_file_args['path']=curpath