Commit a6dccd63 by Fred Alger

Make 'fetch' test for local directories before creating. Fixes issue #450

parent 2b43a999
...@@ -481,7 +481,8 @@ class Runner(object): ...@@ -481,7 +481,8 @@ class Runner(object):
if remote_md5 != local_md5: if remote_md5 != local_md5:
# create the containing directories, if needed # 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 # fetch the file and check for changes
conn.fetch_file(source, dest) conn.fetch_file(source, dest)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment