Ejemplo n.º 1
0
Archivo: Dir.cs Proyecto: 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;
 }
Ejemplo n.º 2
0
Archivo: Dir.cs Proyecto: 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;
 }