Which filter of FileSystemWatcher do I need to use for finding new files

Posted by BDotA on Stack Overflow See other posts from Stack Overflow or by BDotA
Published on 2012-06-17T15:02:57Z Indexed on 2012/06/17 15:16 UTC
Read the original article Hit count: 192

Filed under:
|

So far I know that FileSystemWatcher can look into a folder and if any of the files inside that folder is changed,modifies,.etc... then we can handle it. But I am not sure which filter and event I should use in my scenario: Watch for a Folder, If a file is added to that folder, do XYZ ... So In my scenario I don't care if an existing file is changed,etc..those should be ignored...only do XYZ if and only if a new file has been added to that Folder...

Which event and filter do you recommended for this scenario?

© Stack Overflow or respective owner

Related posts about c#

Related posts about filesystemwatcher