Changelog¶
All notable changes to this project will be documented in this file based on Keep a Changelog. This project adheres to Semantic Versioning.
Unreleased¶
See upcoming changes in News directory
0.4.0 — 2025-03-04¶
Breaking 🔥
Nodeconstructor signature changed to(key: str, base: DictTree, basedir: Optional[Path])Nodehas now separate attributesabspathandrelpathinstead of single polymorphicpathis_dirproperty ofNodewas renamed toisdir
Added 🌿
Relative sub-path operator
tree / 'subdir'Absolute sub-path operator
tree // 'subdir'
0.3.1 — 2025-03-03¶
Added 🌿
Argument
chdirofDir.mktree()can now accept boolean values.
0.3.0 — 2025-03-03¶
Breaking 🔥
Multiple API changes
Misc
Started using new internal data structure
NestedDictStarted using makukha/copier-python
Fixed
Existing
basedirshould not raise error on layout creation
0.2.1 — 2025-02-22¶
Added 🌿
New methods to append entries:
__or__(),__ior__(),add(),update()New method
copy()to get a deep copyMethod
__contains__()to check whether directory layout object contains specific pathItem access with
__getitem__()returningPathobjectContext manager protocol
__enter__()and__exit__()that callsrmtree()ifmktree()was called earlier
0.2.0 — 2025-02-21¶
Breaking 🔥
Renamed argument
show_basedirtoreal_basedir
Added 🌿
Optional
kwargstoDirLayout.print_treeandto_tree
0.1.0 — 2025-02-20¶
Added 🌿
Initial release