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):