Ejemplo n.º 1
0
 private static void AddLinks(string path, List <Link> list)
 {
     if (Ignore(path))
     {
         return;
     }
     foreach (var dir in Directory.GetDirectories(path))
     {
         if (!Ignore(dir))
         {
             try
             {
                 Link link = JunctionPoint.GetLink(dir);
                 if (link != null)
                 {
                     list.Add(link);
                 }
                 else
                 {
                     AddLinks(dir, list);
                 }
             }
             catch (IOException)
             {
             }
         }
     }
 }
Ejemplo n.º 2
0
 public bool CheckLink()
 {
     if (Directory.Exists(source) && Directory.Exists(destination))
     {
         return(Equals(JunctionPoint.GetLink(source)));
     }
     return(false);
 }