Releases: ForNeVeR/TruePath
TruePath v1.11.0
Fixed
Added
- A new function,
PathIo.ExistsFile(this AbsolutePath), checking for strict file existence. Thanks to @cnaples79!
TruePath v1.10.0
TruePath v1.9.0
Changed
PathIo.CreateDirectory,DeleteEmptyDirectory,DeleteDirectoryRecursivelyare now extension methods. Thanks to @seclerp!
Added
- Extension methods:
PathIo.ReadAllLinesAsync,PathIo.ReadAllText,PathIo.ReadAllTextAsync,PathIo.WriteAllTextAsync,PathIo.GetFiles,PathIo.GetDirectories(the latter two for file system traversal). Thanks to @seclerp!
TruePath v1.8.0
TruePath v1.7.0
Added
-
A new package, TruePath.SystemIo, with adapter for
System.IOtypes.TruePath.SystemIo.PathIocontains most of the static methods from .NET'sFileandDirectorytypes as extension methods over theAbstractPath.Thanks to @kant2002!
TruePath v1.6.0
TruePath v1.5.0
Fixed
- Incorrect path normalization: last ellipsis (
...) in a path was treated as a..entry.
Changed
TruePath v1.4.0
Changed
-
#16: Support Windows disk drives in the normalization algorithm.
Thanks to @Kataane.
-
More optimizations for
AbsolutePath's/operator: it will avoid the unnecessary check for absolute path. -
#85: Minor performance improvements for absolute path checking on Windows.
Thanks to @Kataane.
Added
-
AbsolutePath::Canonicalizeto convert the path to absolute, convert to correct case on case-insensitive file systems, resolve symlinks.Thanks to @Kataane.
-
LocalPath::ResolveToCurrentDirectory: effectively calculatescurrentDirectory / this. No-op for paths that are already absolute (aside from converting to theAbsolutePathtype).Thanks to @Illusion4.
-
AbsolutePath::ReadKindto check the file system object kind (file, directory, or something else) and whether it exists at all.Thanks to @Kataane.
-
#76: a new
Temporaryclass for creating a temp file or folder.Thanks to @Illusion4.
TruePath v1.3.0
Added
-
#39: Add
AbsolutePath::RelativeTo.Thanks to @ronimizy.
-
IPath::IsPrefixOfto check path prefixes.Thanks to @babaruh.
-
IPath::StartsWithto check if the current path starts with a specified path.Thanks to @babaruh.
-
#38: Introduce
AbsolutePath::CurrentWorkingDirectory.Thanks to @babaruh.
Changed
-
#17:
AbsolutePath::Parentshould not re-check the path's absoluteness (a performance optimization).Thanks to @ronimizy.