From 19c8450aa0a9ea008a3e5fd4ec44f7c3761db663 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 7 Dec 2025 22:53:45 -0500 Subject: Switch paths to use Result return values instead of fail() --- CHANGES.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CHANGES.md') diff --git a/CHANGES.md b/CHANGES.md index 1baafc87..51c4dcb9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 -- cgit v1.2.3