示例#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);
        }