Ejemplo n.º 1
0
    def sha_iter(self):
        # find all files which look like an object, extract sha from there
        for root, dirs, files in os.walk(self.root_path()):
            root_base = basename(root)
            if len(root_base) != 2:
                continue

            for f in files:
                if len(f) != 38:
                    continue
                yield hex_to_bin(root_base + f)
Ejemplo n.º 2
0
    def sha_iter(self):
        # find all files which look like an object, extract sha from there
        for root, dirs, files in os.walk(self.root_path()):
            root_base = basename(root)
            if len(root_base) != 2:
                continue

            for f in files:
                if len(f) != 38:
                    continue
                yield hex_to_bin(root_base + f)
Ejemplo n.º 3
0
 def name(self):
     """:return: Name portion of the path, effectively being the basename"""
     return basename(self.path)
Ejemplo n.º 4
0
	def name(self):
		""":return: Name portion of the path, effectively being the basename"""
		return basename(self.path)