mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -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/")
|
ankiDir = os.path.expanduser("~/.anki/")
|
||||||
newDeckDir = ankiDir
|
newDeckDir = ankiDir
|
||||||
if not os.path.exists(ankiDir):
|
if not os.path.exists(ankiDir):
|
||||||
os.mkdir(ankiDir)
|
os.makedirs(ankiDir)
|
||||||
# backup
|
# backup
|
||||||
backupDir = os.path.join(ankiDir, "backups")
|
backupDir = os.path.join(ankiDir, "backups")
|
||||||
if not os.path.exists(backupDir):
|
if not os.path.exists(backupDir):
|
||||||
os.mkdir(backupDir)
|
os.makedirs(backupDir)
|
||||||
|
|
||||||
class DeckStorage(object):
|
class DeckStorage(object):
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue