diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 22:53:45 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-12-07 22:53:45 -0500 |
| commit | 19c8450aa0a9ea008a3e5fd4ec44f7c3761db663 (patch) | |
| tree | 52295560cc8081d7af0c87b5fbb31bfbaf46a25f /CHANGES.md | |
| parent | 544b1fb6a70d55bf368b827136cf0f37a26e8288 (diff) | |
Switch paths to use Result return values instead of fail()
Diffstat (limited to 'CHANGES.md')
| -rw-r--r-- | CHANGES.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -10,6 +10,17 @@ have tags with member fields and those without. - Rename `Empty()` to `Present()` for set-like tables. - Paths are now an `enum Path(AbsolutePath(components:[Text]), RelativePath(components:[Text]), HomePath(components:[Text]))` +- Added `enum Result(Success, Failure(message:Text))` type for indicating + success or failure. +- Some path methods now use `Result` return types instead of failing: + - `Path.append()` + - `Path.append_bytes()` + - `Path.create_directory()` + - `Path.remove()` + - `Path.set_owner()` + - `Path.write()` + - `Path.write_bytes()` +- `Path.parent()` returns `none` if path is `(/)` (file root) ## v2025-11-30 |
