修复ToolFile中文件枚举函数的错误
This commit is contained in:
@@ -504,12 +504,11 @@ class ToolFile(BaseModel):
|
|||||||
return result
|
return result
|
||||||
def DirWalk(
|
def DirWalk(
|
||||||
self,
|
self,
|
||||||
top,
|
|
||||||
topdown: bool = True,
|
topdown: bool = True,
|
||||||
onerror: Optional[Callable] = None,
|
onerror: Optional[Callable] = None,
|
||||||
followlinks: bool = False
|
followlinks: bool = False
|
||||||
) -> Iterator[tuple[dir_name_type, list[dir_name_type], list[file_name_type]]]:
|
) -> 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):
|
def bool(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user