From c95f61a4fd88947abe8e18d6a08542135c4ae6c0 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Thu, 20 Jun 2024 23:57:16 +0200 Subject: [PATCH] (#38) Document the changes --- CHANGELOG.md | 3 +++ README.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e65098..2061640 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Changed - [#17: `AbsolutePath::Parent` should not re-check the path's absoluteness](https://github.com/ForNeVeR/TruePath/issues/17) (a performance optimization). +### Added +- [#38: Introduce `AbsolutePath::CurrentWorkingDirectory`]. + ## [1.2.1] - 2024-05-25 ### Fixed - [#60: `PathStrings.Normalize("../../foo")` is broken](https://github.com/ForNeVeR/TruePath/issues/60). diff --git a/README.md b/README.md index 35695a1..54450c8 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,9 @@ This functions basically the same as the `LocalPath`, but it is _always_ an abso To convert from `LocalPath` to `AbsolutePath` and vice versa, you can use the constructors of `AbsolutePath` and `LocalPath` respectively. Any `AbsolutePath` constructor (from either a string or a `LocalPath`) has same check for absolute path, and any `LocalPath` constructor (from either a string or an `AbsolutePath`) doesn't have any checks. +#### Static Members +- `AbsolutePath.CurrentWorkingDirectory`: returns `Environment.CurrentDirectory` as an `AbsolutePath` instance. + ### `IPath` This is an interface that is implemented by both `LocalPath` and `AbsolutePath`. It allows to process any paths in a polymorphic way.