mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
create intermediate dirs (for ipod)
This commit is contained in:
parent
26ad7e8149
commit
f1d61bc832
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
||||
|
|
Loading…
Reference in a new issue