def find_parts(self) -> ty.ValuesView:
""" Find all files generated by inputs.
Returns:
[ file path ]
"""
files = collections.defaultdict(list)
# type: ty.DefaultDict[str, ty.List[str]]
for fname in sorted(os.listdir(self._working_dir)):
fpath = os.path.join(self._working_dir, fname)
if not os.path.isfile(fpath):
continue
oid = fname.split('.', 1)[0]
if len(oid) == 40:
files[oid].append(fpath)
return files.values()
# @tc.typecheck
评论列表
文章目录