Example #1
0
        public static DirectoryInfo NavigateTo(this DirectoryInfo dir, string path)
        {
            dir.AssertNotNull();
            var tPath = Path.Combine(dir.FullName, path);

            return(new DirectoryInfo(tPath));
        }
Example #2
0
        public static FileInfo PickFile(this DirectoryInfo dir, string path)
        {
            dir.AssertNotNull();
            var tPath = Path.Combine(dir.FullName, path);

            return(new FileInfo(tPath));
        }
Example #3
0
 public static void SafeCreate(this DirectoryInfo dirInfo, string paramName)
 {
     dirInfo.AssertNotNull(paramName).Create();
     dirInfo.AssertExists();
 }