-
-
Notifications
You must be signed in to change notification settings - Fork 764
Closed
Description
Currently, DirectoryPath and FilePath shares several properties and methods typed so can't be in the base class, an IPath<T> interface with type parameter would make it easier to write shared logic between files and directories
Methods / Properties that can be shared:
- string FullPath { get; }
- bool IsRelative { get; }
- bool IsUNC { get; }
- char Separator { get; }
- string[] Segments { get; }
- string ToString();
- T MakeAbsolute(ICakeEnvironment environment);
- T MakeAbsolute(DirectoryPath path);
- T Collapse();
- public T GetRelativePath(T to);