-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I love this library, but here are a couple things I've run into that I think would make it better:
-
relative path interfaces should have a parameterless
GetAbsolutePath()method that gets an absolute path relative to the working directory, which is a pretty common operation -
FileInfo/DirectoryInfoproperties can be cache the created instance on the firstgetcall and return that for subsequent calls instead of making a new instance each time
Any interest in having these items added? I could assist with implementing them.
Unrelated aside: I would have much preferred if you could use this library without the string extensions, but rather with methods like: DirectoryPath.Create(string path), AbsoluteDirectoryPath.Create(string path) etc...or just using constructors. It feels like a bad code smell to pollute the string class with methods that only apply to paths and not to any other strings.