private void TargetWatcher_Renamed(object sender, RenamedEventArgs e) { if (Path.GetFileNameWithoutExtension(e.FullPath).Contains("DEARCHIVE")) { Archivator.Dearchive(e.FullPath, folders.Find(x => x.Name == "Extract").Path); File.Delete(e.FullPath); } }
private void SourceWatcher_Created(object sender, FileSystemEventArgs e) { Archivator.Archive(e.FullPath, folders.Find(x => x.Name == "Archive").Path); }
private void SourceWatcher_Created(object sender, FileSystemEventArgs e) { Archivator.Archive(e.FullPath, targetDirPath); }