title: Detect if there are new files created in a folder using FileWatcher
body: <p>I'm trying to know if there are new files created in a given directory. I have next code:</p>
  <pre><code>private static void CreateWatcher()
      {
          //Create a new FileSystemWatcher.
          FileSystemWatcher watcher = new FileSystemWatcher();
  
          //Set the filter to all files.
          watcher.Filter = &quot;*.*&quot;;
  
          //Subscribe to the Created event.
          watcher.Created += new FileSystemEventHandler(watcher_FileCreated);
  
          //Set the path 
          watcher.Path = path;
  
          //Enable the FileSystemWatcher events.
          watcher.EnableRaisingEvents = true;
      }
  
      private static void watcher_FileCreated(object sender, FileSystemEventArgs e)
      {
          Console.WriteLine(&quot;Nuevo archivo creado -&gt; &quot; + e.Name);        
      }
  
      public static void Main(string[] args)
      {
          CreateWatcher();
          CreateFiles();
          Console.Read();
      }
  </code></pre>
  <p>In <code>CreatedFiles()</code> function, I'm creating on the path three new files (one zip and two txt). It detects two txt files but not the same with the zip file. How can I solve that?</p>