Make 'fetch' test for local directories before creating. Fixes issue #450
This commit is contained in:
parent
2b43a99927
commit
a6dccd63a1
1 changed files with 2 additions and 1 deletions
|
@ -481,7 +481,8 @@ class Runner(object):
|
|||
|
||||
if remote_md5 != local_md5:
|
||||
# create the containing directories, if needed
|
||||
os.makedirs(os.path.dirname(dest))
|
||||
if not os.path.isdir(os.path.dirname(dest)):
|
||||
os.makedirs(os.path.dirname(dest))
|
||||
|
||||
# fetch the file and check for changes
|
||||
conn.fetch_file(source, dest)
|
||||
|
|
Loading…
Reference in a new issue