use makedirs, some old instances don't have parent directory properly set
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 07 Aug 2009 14:49:48 +0200
changeset 2737 aaef49a3c39b
parent 2736 c5048502409f
child 2738 e7e46121a4f9
use makedirs, some old instances don't have parent directory properly set
server/sqlutils.py
--- a/server/sqlutils.py	Fri Aug 07 14:49:19 2009 +0200
+++ b/server/sqlutils.py	Fri Aug 07 14:49:48 2009 +0200
@@ -204,7 +204,7 @@
         if not os.path.exists(backupdir):
             if confirm('%s does not exist. Create it?' % backupdir,
                        abort=False, shell=False):
-                os.mkdir(backupdir)
+                os.makedirs(backupdir)
             else:
                 print '-> failed to backup instance'
                 return