[Qt-interest] QFileSystemWatcher monitor a shared directory

pengliang(彭亮) pengliang at founder.com
Thu Dec 23 10:07:48 CET 2010


Hi All

     I have written a program to monitor a shared directory(samba on Linux) use QFileSystemWatcher. (The program runs on Windows, monitor a Linux directory).

1.  When a new file was created, it can not emit directoryChanged signal. If it monitored a windows directory, it can work.

2.  The signal of directoryChanged(const QString &path) : why the parameter of path is the directory path monitored, I think should be the file path which was created or modified.

I had written a similar program use .net, the parameter of path is the file path created of modified. But I think .net has a bug: it monitor a shared directory(“/work/aaa”) which is a Linux directory, and the attribute of IncludeSubdirectories is true, if I create a file in it’s sub directory(“/work/aaa/bbb/newfile”) via “touch newfile”, it can not work. but create newfile in “/work/aaa”, it is ok!!!

 

Anybody has experience or can give me any advice.

 

 

 

Thanks

Ken

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101223/c9c406ec/attachment.html 


More information about the Qt-interest-old mailing list