开发者

Why File System Watcher is almost blind?

开发者 https://www.devze.com 2022-12-16 01:51 出处:网络
I am using FileSystemWatcher in order renaming files within a Watched directory. The problem occurs if the number of files copied simultaneously to the watched directory开发者_Python百科 exceeds the

I am using FileSystemWatcher in order renaming files within a Watched directory.

The problem occurs if the number of files copied simultaneously to the watched directory开发者_Python百科 exceeds the number of 50...

The rename event is fired successfully for the first 50 files, but after that nothing happens

Any suggestions please?


You'll need to give it a bigger InternalBufferSize. And repond quickly to change events. Queuing them, then processing the notification in another thread is best. That also helps you deal with the inevitable locked file problems.

0

精彩评论

暂无评论...
验证码 换一张
取 消