A quick look at FluentPath


I find the System.IO namespace a little clumsy to work with sometimes. I had some code which wanted to navigate my solutions structure to access an assembly somewhere. It’s illustrated below.


Here’s the solution with System.IO:

var path = Path.Combine(
    new DirectoryInfo(

Perhaps there’s an easier and neater way, but this is the way I found intuitive to do. Now here’s the same using FluentPath.

var path = Path.Current
               .Combine("Warp.Profiler.Unit.Tests.SampleAssembly", "bin", "Debug");

That’s a good improvement in readability and I found it more intuitive to write. Give it a try and see how you like it.


blog comments powered by Disqus