Sunday, December 28, 2008

File and Directory Path help from the man who brought us NDepend

CodePlex - NDepend.Helpers.FileDirectoryPath

“NDepend.Helpers.FilePathDirectory is the library used by the tool NDepend to handle common path operations. Benefits of the NDepend.Helpers.FilePathDirectory over the .NET Framework class System.IO.Path include:

  • Strongly typed File/Directory path.
  • Relative / absolute path conversion.
  • Path normalization API
  • Path validity check API
  • Path comparison API
  • Path browsing API.
  • Path rebasing API
  • List of path operations (TryGetCommonRootDirectory, GetListOfUniqueDirsAndUniqueFileNames, list equality…)

NDepend.Helpers.FilePathDirectory is 100% unit-tested and tests code is provided with the source code.

…”

There are some features here that we reinvented recently ourselves, plus tons I really like the sound of (plus I dig that the unit tests are already there ;)… Next update to that project I’m going to have to see if we can use this instead. We’ll have to get approval from “on high” since this is a LGPL licensed project, but that should pose too much of a hindrance…

(via Patrick Smacchia [MVP C#] - What is Microsoft waiting for providing a descent path API?)

No comments: