TruePath
TruePath copied to clipboard
File path abstraction library for .NET.
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.9.0 to 17.10.0. Release notes Sourced from Microsoft.NET.Test.Sdk's releases. v17.10.0 What's Changed Add missing runtimeconfig.json file for 8.0 by @MarcoRossignoli in microsoft/vstest#4792 Localized file check-in by OneLocBuild...
For example, https://github.com/ndepend/NDepend.Path has `IAbsoluteFilePath`, `IAbsoluteDirectoryPath`, `IRelativeDirectoryPath` and `IRelativeFilePath `. It'd be great to see such abstractions in TruePath too.
An API like `AbsolutePath.StartsWith(AbsolutePath anotherPath)` would be very useful.
There should be a method to check if a path represents an existing file or a directory. Perhaps something like this? ```csharp struct LocalPath { // … // null ->...
Currently, we have the following two types for paths: - `AbsolutePath` for, well, absolute paths, - `LocalPath` for _any paths_. We lack a separate type to specify a relative-only type,...
We'll need a file system API for virtual paths. Local path (#1) should implement the same API, so it should be possible to abstract over both kinds of paths. The...
On Unix file system, it's always possible to build a relative path between two paths. On Windows, however, it is not universally possible: say, between different disks or between a...
Currently, this method is available on the `LocalPath` but not on the `AbsolutePath`.
Should be an analog to `Environment.CurrentDirectory` but returning an `AbsolutePath`.
We need a function that will take a `LocalPath` and convert it into an `AbsolutePath`, by these rules: - if the path is already absolute, return as-is (re-wrapping into an...