Skip to content

Releases: ForNeVeR/TruePath

TruePath v1.11.0

25 Nov 22:24

Choose a tag to compare

Fixed

Added

  • A new function, PathIo.ExistsFile(this AbsolutePath), checking for strict file existence. Thanks to @cnaples79!

TruePath v1.10.0

04 Aug 21:38

Choose a tag to compare

Added

  • Support for .NET Standard 2.0. Thanks to @seclerp!

Fixed

  • Fix a path parsing issue based on fuzz testing (#139). Thanks to @kant2002!

TruePath v1.9.0

31 May 23:11

Choose a tag to compare

Changed

  • PathIo.CreateDirectory, DeleteEmptyDirectory, DeleteDirectoryRecursively are 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

31 May 15:05

Choose a tag to compare

Added

  • #87: all the path types are now IComparable<Self>. Thanks to @alvkn!
  • IPath<TPath> generic interface now supports a Create method to create a path from its string representation. Thanks to @alvkn!
  • #120: a new method on paths, ChangeExtension. Thanks to @alvkn!

Fixed

  • #134: path normalization fails when input has both dot folders and file extension. Thanks to @maxkatz6 and @kant2002 for a detailed report and a fix!

TruePath v1.7.0

18 Apr 20:16

Choose a tag to compare

Added

  • A new package, TruePath.SystemIo, with adapter for System.IO types.

    TruePath.SystemIo.PathIo contains most of the static methods from .NET's File and Directory types as extension methods over the AbstractPath.

    Thanks to @kant2002!

TruePath v1.6.0

06 Oct 16:21

Choose a tag to compare

Changed

  • Paths are now compared using a platform-specific comparer by default:

    • case-sensitive on Linux,
    • case-insensitive on Windows and macOS.

    Thanks to @babaruh and @Kataane for working on this improvement.

Added

  • Equals method on AbsolutePath and LocalPath that accepts an alternate comparer (see PlatformDefaultComparer and StrictStringComparer static comparers on both types). Thanks to @babaruh and @Kataane for working on this improvement.

TruePath v1.5.0

22 Sep 19:32

Choose a tag to compare

Fixed

  • Incorrect path normalization: last ellipsis (...) in a path was treated as a .. entry.

Changed

  • #18: update to behavior of .Parent on relative paths.

    Now, it works for relative paths by either removing the last part or adding .. as necessary to lead to a parent directory.

    Thanks to @Kataane for help on this one.

TruePath v1.4.0

11 Aug 22:04

Choose a tag to compare

Changed

Added

  • AbsolutePath::Canonicalize to convert the path to absolute, convert to correct case on case-insensitive file systems, resolve symlinks.

    Thanks to @Kataane.

  • LocalPath::ResolveToCurrentDirectory: effectively calculates currentDirectory / this. No-op for paths that are already absolute (aside from converting to the AbsolutePath type).

    Thanks to @Illusion4.

  • AbsolutePath::ReadKind to check the file system object kind (file, directory, or something else) and whether it exists at all.

    Thanks to @Kataane.

  • #76: a new Temporary class for creating a temp file or folder.

    Thanks to @Illusion4.

TruePath v1.3.0

21 Jun 21:31

Choose a tag to compare

Added

Changed

TruePath v1.2.1

25 May 19:49

Choose a tag to compare

Fixed

  • [#60: PathStrings.Normalize("../../foo") is broken].

    Thanks to @ronimizy for report.