Exemplo n.º 1
0
 def make_path(self, path=None):
     """
     Helper method for an OVZFile object to be able to create the path for
     self.filename if it doesn't exist before running touch()
     """
     if not path:
         path = self.filename
     basedir = os.path.dirname(path)
     ovz_utils.make_dir(basedir)
Exemplo n.º 2
0
 def make_dump_dir(self):
     """
     Make our dump locations
     """
     LOG.debug(_('Making dump location for %s') % self.instance['id'])
     ovz_utils.make_dir(self.dumpdir)
     ovz_utils.make_dir(self.i_dumpdir)
     ovz_utils.make_dir(self.q_dumpdir)
     ovz_utils.make_dir(self.as_dumpdir)
     LOG.debug(_('Done making location for %s') % self.instance['id'])