开发者

How can i save version before filesystemWatcher event?

开发者 https://www.devze.com 2023-03-31 12:22 出处:网络
I have a task to save versions of documents for specified开发者_如何学C directory and look for changes.

I have a task to save versions of documents for specified开发者_如何学C directory and look for changes.

before each change i need to keep the CURRENT version of the file in other place.

but the filesystemWatcher doesnt help me here because its events is after the change...

what should i do ?


You'd want to snapshot the target directories before watching them, like when your service starts up or something, that way when the file change comes through you have the base to compare to.

0

精彩评论

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

关注公众号