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); } } } }
private void CreatedHandler(object sender, FileSystemEventArgs e) { string dstPath = Path.Combine(dstDir, e.Name); Linker.Link(dstPath, e.FullPath); }