1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

fixed typo, now correctly check isdir

fixes #3089
This commit is contained in:
Brian Coca 2016-02-22 12:35:57 -05:00 committed by Matt Clay
parent 69b0e39220
commit a546775172

View file

@ -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