From 58a66b10072e4fdf1a5893e012c2caae0a22c25a Mon Sep 17 00:00:00 2001 From: Joel Goguen Date: Mon, 25 Nov 2013 21:58:12 -0400 Subject: [PATCH] Make base directories only --- src/calibre/ebooks/oeb/polish/container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/container.py b/src/calibre/ebooks/oeb/polish/container.py index cf22972a66..2b9f932fe3 100644 --- a/src/calibre/ebooks/oeb/polish/container.py +++ b/src/calibre/ebooks/oeb/polish/container.py @@ -676,7 +676,7 @@ class Container(object): # {{{ # of links to the file base = os.path.dirname(path) if not os.path.exists(base): - os.makedirs(path) + os.makedirs(base) open(path, 'wb').close() return item