Can I write a Microsoft .NET programm with a FileSystemWatcher and expect it to work under Mac OS X with Mono without changes?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Yes, it will work without changes. Mono includes a FileSystemWatcher for all platforms.
Keep in mind that your code might want to use Path.PathSeperator to be more compatible with the different ways directory names are formatted on different platforms.
回答2:
As of November 2011, it exists and works for some uses, but not all.
For example, LastWrite and Size dont seem to work on OSX.