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

This commit is contained in:
Fred Alger 2012-06-05 10:38:12 -04:00
parent 57a34d914f
commit 51b460e8c6

View file

@ -481,6 +481,7 @@ class Runner(object):
if remote_md5 != local_md5:
# create the containing directories, if needed
if not os.path.isdir(os.path.dirname(dest)):
os.makedirs(os.path.dirname(dest))
# fetch the file and check for changes