UnityMol  0.9.6-875
UnityMol viewer / In developement
SplitExtension.cs
Go to the documentation of this file.
1 using System.IO;
2 using System;
3 using System.Collections.Generic;
4 
5 public static class SplitExt {
10  internal static List<DirectoryInfo> Split(this DirectoryInfo path)
11  {
12  if(path == null) throw new ArgumentNullException("path");
13  var ret = new List<DirectoryInfo>();
14  if (path.Parent != null) ret.AddRange(Split(path.Parent));
15  ret.Add(path);
16  return ret;
17  }
18 }
static List< DirectoryInfo > Split(this DirectoryInfo path)
Split the specified path.