:
'''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