mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Make base directories only
This commit is contained in:
parent
9e9ea5178f
commit
58a66b1007
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user