fam
[Top] [All Lists]

Re: [fam] Monitoring more directories

To: FAM <fam@xxxxxxxxxxx>
Subject: Re: [fam] Monitoring more directories
From: Christian Kreibich <kreibich@xxxxxxxxxxxxxxxxxxxxxxxxx>
Date: 07 Aug 2002 23:08:49 +0200
In-reply-to: <1028757443.2350.0.camel@sistemi_1>
Organization:
References: <1028757443.2350.0.camel@sistemi_1>
Sender: owner-fam@xxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>