1.0.11
- Optimize the block of code in
Directory
that gets subpaths, now the logic is cleaner and clearer. - Path objects support Boolean judgment (return
True
if path exists elseFalse
). - Fix a possible error, the default parameter
level
in theDirectory.tree
method sets the default value too early, may invalidate the maximum depth set by the developer. - Improve the internal call of the method
Path.lexists
. - No longer rely on the
pathlib
built-in library. - Enable Python3.12 support.
1.优化 Directory
中获取子路径的代码块,现在逻辑更简洁、更明晰。
2.路径对象支持布尔判断(路径存在返回 True
否则 False
)。
3.修复一个可能发生的错误,Directory.tree
方法中的默认参数 level
过早设置默认值,可能使开发者设置的最大深度值无效。
4.改进方法 Path.lexists
的内部调用。
5.不再依赖 pathlib
内置库。
6.启用对 Python3.12 支持。