(self)
return all(dirs_exist)
check if directory structure corresponds to a repo
check if directory structure corresponds to a repo
check if directory structure corresponds to a repo
def is_repo(self):
        """check if directory structure corresponds to a repo"""
        dirs_exist = [os.path.exists(self.reposdir),
                      os.path.exists(self.layersdir),
                      os.path.exists(self.containersdir),
                      os.path.exists(self.bindir),
                      os.path.exists(self.libdir)]
        return all(dirs_exist)
def is_repo ( self ) : dirs_exist = [ os . path . exists ( self . reposdir ) , os . path . exists ( self . layersdir ) , os . path . exists ( self . containersdir ) , os . path . exists ( self . bindir ) , os . path . exists ( self . libdir ) ] return all ( dirs_exist )