public DirModel(string path) { Dir = new DirectoryInfo(path); if (Dir.Parent != null && Dir.Parent.Exists) { Parent = new DirModel(Dir.Parent.FullName); } }
public SparseBundle() { string dir; try { dir = File.ReadAllText("Content/DefaultDir.txt"); } catch { dir = _defaultDir; } Content = new DirModel(dir); }