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

colinjones colin_a_jones at hotmail.com
Sun Apr 5 16:56:26 EDT 2009


Then what you are saying is that this class is not a correct implementation
of the .NET class. This is a COM event registration which uses COM
communications, nothing whatsoever to do with CIFS/SMB/SAMBA. The UNC is
just to tell the class where to connect the COM object to. Unfortunately,
mounting the share locally will not work either, as the class will then just
attempt to use inotify to monitor it which will not work. The only way
around it would be to use the managed/polling option which would defeat the
purpose as we are trying to get a "push" notification.

thx anyway!

Robert Jordan wrote:
> 
> colinjones wrote:
>> I don't think there is any point trying to mount the remote share, or
>> anything like that because the FileSystemWatcher class needs to parse the
>> UNC path to get the remote machine name so that it can connect to the
>> same
>> functionality on the remote machine using COM communications. 
> 
> Linux does not support UNC paths, nor Mono does. And CIFS does not
> need COM :).
> 
> You have to mount the Windows share with OS' machinery (smbmount).
> Then you can use the share like a local path.
> 
> Robert
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/FileSystemWatcher-on-Linux-to-monitor-a-remote-NTFS-share-tp22836300p22898573.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list