(self, imagerepo)
Create directory for an image repository
Create directory for an image repository
Create directory for an image repository
def setup_imagerepo(self, imagerepo):
        """Create directory for an image repository"""
        if not imagerepo:
            return None
        directory = self.reposdir + "/" + imagerepo
        try:
            if not os.path.exists(directory):
                os.makedirs(directory)
                self.cur_repodir = directory
                return True

            self.cur_repodir = directory
            return False
        except (IOError, OSError):
            return None
def setup_imagerepo ( self , imagerepo ) : if not imagerepo : return None directory = self . reposdir + "/" + imagerepo try : if not os . path . exists ( directory ) : os . makedirs ( directory ) self . cur_repodir = directory return True self . cur_repodir = directory return False except ( IOError , OSError ) : return None