Beispiel #1
0
 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);
     }
 }
Beispiel #2
0
 private void SourceWatcher_Created(object sender, FileSystemEventArgs e)
 {
     Archivator.Archive(e.FullPath, folders.Find(x => x.Name == "Archive").Path);
 }
Beispiel #3
0
 private void SourceWatcher_Created(object sender, FileSystemEventArgs e)
 {
     Archivator.Archive(e.FullPath, targetDirPath);
 }