예제 #1
0
        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);
        }
예제 #2
0
        public static void Restore(DateTime currentTime)
        {
            var input = Directory.GetFiles(directory, "*.txt", SearchOption.AllDirectories);

            TextFileInfo.Restore(fileInfos, currentTime, input, currentPathNumber);
        }