private static void Watcher(object sender, FileSystemEventArgs a) { var input = Directory.GetFiles(directory, "*.txt", SearchOption.AllDirectories); foreach (var item in input) { TextFileInfo.Add(fileInfos, new TextFileInfo(item), currentPathNumber); } TextFileInfo.DeathTimeAdd(fileInfos, input); }
public static void Restore(DateTime currentTime) { var input = Directory.GetFiles(directory, "*.txt", SearchOption.AllDirectories); TextFileInfo.Restore(fileInfos, currentTime, input, currentPathNumber); }