Logo Search packages:      
Sourcecode: obnam version File versions  Download package

def obnamlib::repo::Repository::list_chunks (   self )
Return list of ids of all chunks in repository.

Definition at line 585 of file repo.py.

                         :
        '''Return list of ids of all chunks in repository.'''
        self.require_open_client()
        result = []
        if self.fs.exists('chunks'):
            for pathname, st in self.fs.scan_tree('chunks'):
                if stat.S_ISREG(st.st_mode):
                    basename = os.path.basename(pathname)
                    result.append(int(basename, 16))
        return result


Generated by  Doxygen 1.6.0   Back to index