Skip to content

1.0.11

Compare
Choose a tag to compare
@2018-11-27 2018-11-27 released this 22 Jun 03:33
· 7 commits to master since this release
  1. Optimize the block of code in Directory that gets subpaths, now the logic is cleaner and clearer.
  2. Path objects support Boolean judgment (return True if path exists else False).
  3. Fix a possible error, the default parameter level in the Directory.tree method sets the default value too early, may invalidate the maximum depth set by the developer.
  4. Improve the internal call of the method Path.lexists.
  5. No longer rely on the pathlib built-in library.
  6. Enable Python3.12 support.

1.优化 Directory 中获取子路径的代码块,现在逻辑更简洁、更明晰。
2.路径对象支持布尔判断(路径存在返回 True 否则 False)。
3.修复一个可能发生的错误,Directory.tree 方法中的默认参数 level 过早设置默认值,可能使开发者设置的最大深度值无效。
4.改进方法 Path.lexists 的内部调用。
5.不再依赖 pathlib 内置库。
6.启用对 Python3.12 支持。