mirror of
https://github.com/munki/munki.git
synced 2026-03-05 14:29:35 -06:00
use os.makedirs() instead of os.makedir() when creating our cache directory in case ~/Library/Caches doesn't exist. Addresses issue #408
This commit is contained in:
@@ -111,7 +111,7 @@ def html_dir():
|
||||
cache_dir = u'/private/tmp'
|
||||
our_cache_dir = os.path.join(cache_dir, bundle_id)
|
||||
if not os.path.exists(our_cache_dir):
|
||||
os.mkdir(our_cache_dir)
|
||||
os.mkdirs(our_cache_dir)
|
||||
_html_dir = os.path.join(our_cache_dir, 'html')
|
||||
if os.path.exists(_html_dir):
|
||||
# empty it
|
||||
|
||||
Reference in New Issue
Block a user