From f1d61bc832bb4f0aa86c0b2aaea813d46c5ef3fc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 16 Nov 2008 04:37:14 +0900 Subject: [PATCH] create intermediate dirs (for ipod) --- anki/deck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index b3ada45d8..8f97c37be 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -1540,11 +1540,11 @@ else: ankiDir = os.path.expanduser("~/.anki/") newDeckDir = ankiDir if not os.path.exists(ankiDir): - os.mkdir(ankiDir) + os.makedirs(ankiDir) # backup backupDir = os.path.join(ankiDir, "backups") if not os.path.exists(backupDir): - os.mkdir(backupDir) + os.makedirs(backupDir) class DeckStorage(object):