Esempio n. 1
0
File: Dir.cs Progetto: fourtf/4Plug
 // Static
 public static bool TryGet(string path, out Dir outDir)
 {
     if (_Dir.Exists(path))
     {
         outDir = new Dir(path);
         return true;
     }
     outDir = null;
     return false;
 }
Esempio n. 2
0
File: Dir.cs Progetto: fourtf/4Plug
 public bool TryGetDir(string dir, out Dir outDir)
 {
     string d = firstDirMatch(dir);
     if (d == null)
     {
         outDir = null;
         return false;
     }
     outDir = new Dir(_Path.Combine(Path, d));
     return true;
 }