[Mono-list] FileSystemWatcher on Linux to monitor a remote NTFS share

Robert Jordan robertj at gmx.net
Thu Apr 2 15:10:42 EDT 2009


colinjones wrote:
> I hve done some searching for this specific case, but cannot find any
> examples of people confirming this works.
> 
>>From the MSDN article
> http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx it
> says in the Remarks section that this class can be used to register for
> events relating to file/folder changes on a remote system, not just the
> local system.
> 
> Is this functionality fully implemented in Mono? I would like to code
> something on a Linux box, using the Mono equivalent class, that will monitor
> a remote share file/folder structure on a Windows box, and get events back
> when a file/folder on that Windows box changes.
> 
> Is this possible with the Mono class?

It should be possible if you set the environment var
MONO_MANAGED_WATCHER=1. See mono(1).

The performance will most likely suck...

Robert



More information about the Mono-list mailing list