Esempio n. 1
0
 private void FirstRun()
 {
     foreach (var map in dirMap)
     {
         string[] srcDirs = Directory.GetDirectories(map.Key);
         foreach (var folder in srcDirs)
         {
             string folderName = folder.Replace(Directory.GetParent(folder).FullName + @"\", string.Empty);
             string dstFolder  = Path.Combine(map.Value, folderName);
             if (!Directory.Exists(dstFolder))
             {
                 Linker.Link(dstFolder, folder);
             }
         }
     }
 }
Esempio n. 2
0
        private void CreatedHandler(object sender, FileSystemEventArgs e)
        {
            string dstPath = Path.Combine(dstDir, e.Name);

            Linker.Link(dstPath, e.FullPath);
        }