Skip to content

Commit

Permalink
(ForNeVeR#38) Document the changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Jun 20, 2024
1 parent c847c63 commit c95f61a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit c95f61a

Please sign in to comment.