Check out example codes for "c# filesystemwatcher double events". It will help you in understanding the concepts better.

Code Example 1

//Inside the OnChanged Method
void OnChanged(object source, FileSystemEventArgs e)
        {
            DateTime lastWriteTime = File.GetLastWriteTime(@"PathToCheck");
            if (lastWriteTime != lastRead)
            {
                if (File.Exists(destPath))
                {
                    File.Delete(destPath);
                }

                File.Move(sourcePath, destPath);
                lastRead = lastWriteTime;
            }
        }

Learn ReactJs, React Native from akashmittal.com