Chris B

Chris B

  • NA
  • 1
  • 0

FileSystemWatcher and moving directories

Sep 28 2004 11:28 AM
I have created a FileSystemWatcher which monitors d:\stage. When i move a directory, say c:\project, into the D:\stage directory, I get a FileCreated event only for the directory name "project". I am more interested in the .txt files that are within the 'project' directory, but Create events do not seem to get fired for files within "project". And i do have the SubFolders attribute turned on with the FileSystemWatcher. After i move the C:\project into D:\stage, I can then add any .txt files i want to d:\stage\project and the events fire. The events just don't fire when a whole directory is moved into d:\stage. Has anyone else seen this, is there a workaround?

Answers (1)