public static DirectoryInfo NavigateTo(this DirectoryInfo dir, string path) { dir.AssertNotNull(); var tPath = Path.Combine(dir.FullName, path); return(new DirectoryInfo(tPath)); }
public static FileInfo PickFile(this DirectoryInfo dir, string path) { dir.AssertNotNull(); var tPath = Path.Combine(dir.FullName, path); return(new FileInfo(tPath)); }
public static void SafeCreate(this DirectoryInfo dirInfo, string paramName) { dirInfo.AssertNotNull(paramName).Create(); dirInfo.AssertExists(); }