예제 #1
0
 public DirModel(string path)
 {
     Dir = new DirectoryInfo(path);
     if (Dir.Parent != null && Dir.Parent.Exists)
     {
         Parent = new DirModel(Dir.Parent.FullName);
     }
 }
예제 #2
0
        public SparseBundle()
        {
            string dir;

            try {
                dir = File.ReadAllText("Content/DefaultDir.txt");
            }
            catch {
                dir = _defaultDir;
            }

            Content = new DirModel(dir);
        }