On Wed, 2002-08-07 at 23:57, Leopoldo Centore wrote:
> Hi,
>
> I'm a beginner in the use of fam and I have a very difficult problem to
> resolve.
>
> I have written a code that use fam to check that one or more files are
> created in some directories.
>
> Since the directories are more than one, I insert FAMMonitorDirectory2
> function in a loop cycle.
>
> All works fine and when a new file has created in a directory a signal
> is emitted ("FAMCreated").
>
> Yet, if i try to read "filename" in a struct "FAMEvent" (ev.filename), I
> have only the name of the file and not the absolute path ...
>
> so I don't know in which directories it has been created.
>
> Please, can someone help me ?.
Leopoldo, you need to make use of the FAMRequest values you obtain from
each FAMMonitorDirectory2() call to distinguish them.
Cheers,
Christian.
--
________________________________________________________________________
http://www.whoop.org
--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx
|