修复ToolFile中文件枚举函数的错误

This commit is contained in:
2025-11-06 10:54:53 +08:00
parent a79ba69443
commit 8121899d32

View File

@@ -504,12 +504,11 @@ class ToolFile(BaseModel):
return result
def DirWalk(
self,
top,
topdown: bool = True,
onerror: Optional[Callable] = None,
followlinks: bool = False
) -> Iterator[tuple[dir_name_type, list[dir_name_type], list[file_name_type]]]:
return os.walk(self.OriginFullPath, top=top, topdown=topdown, onerror=onerror, followlinks=followlinks)
return os.walk(self.OriginFullPath, topdown=topdown, onerror=onerror, followlinks=followlinks)
def bool(self):