Exemple #1
0
        private static void OnDeleted(object source, FileSystemEventArgs e)
        {
            string NowTime = DateTime.Now.ToString();

            WriteLog(NowTime, false, $"File: {e.FullPath} deleted");
            Monitoring.CreateSnapShot(NowTime, false);
        }
Exemple #2
0
        private static void OnRenamed(object source, RenamedEventArgs e)
        {
            string NowTime = DateTime.Now.ToString();

            WriteLog(NowTime, false, $"File: {e.OldFullPath} renamed to {e.FullPath}");
            Monitoring.CreateSnapShot(NowTime, false);
        }