create intermediate dirs (for ipod)

This commit is contained in:
Damien Elmes 2008-11-16 04:37:14 +09:00
parent 26ad7e8149
commit f1d61bc832

View file

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