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