# HG changeset patch # User Jeff Hammel # Date 1321402801 28800 # Node ID c62e80b8615a7e7322bf7f31d1602ebd020ed90c # Parent 81fe0523a0782c268a2bbef18a8eaba7c5e42a1f account for paths that do not exit for the FileFetcher diff -r 81fe0523a078 -r c62e80b8615a fetch.py --- a/fetch.py Tue Nov 15 16:17:55 2011 -0800 +++ b/fetch.py Tue Nov 15 16:20:01 2011 -0800 @@ -95,6 +95,10 @@ def __call__(self, dest): + dirname = os.path.dirname(dest) + if not os.path.exists(dirname): + os.makedirs(dirname) + if os.path.isdir(dest): filename = self.url.rsplit('/', 1)[-1] dest = os.path.join(dest, filename)