Hello,

David, thanks for the reply. I am looking to do the recursive listing of
files in a directory using Apache API.

APR::FINFO
I read through http://perl.apache.org/docs/2.0/api/APR/Finfo.html
but, am unable to find something simple(am example) to get me started.

Is APR::FINFO good enough to do this or do I need something else ?
Does anyone know of an example ? or could give me a guide onto this ?

---------------------
         my $finfo = $r->finfo;
         $fname="/usr/local/apache2/conf/httpd.conf";
         $wanted = "0x00000040";
         $cont = 1;
         $ret = $finfo->stat($fname, $wanted, $cont);
----------------------

The above code segment in a module  gives me an error
( cont is not a blessed reference at /usr/local/apache2/lib/perl/Apache/100.pm line 
30.\n)
How would I correct this ?
Also, what does cont do ?  Are there any correct/wrong values for it ?


New & Confused,
Aravind.



On Sun, 9 May 2004, David Hodgkinson wrote:

>
> On 9 May 2004, at 0:29, aravind elango wrote:
>
> >
> > Hi,
> >
> > I am new to programming in modperl and am trying to do a recursive
> > listing
> > of files in a directory.
>
> Sounds like you need the File::Find module from CPAN.
>
>
> --
> Dave Hodgkinson
> CTO, Rockit Factory Ltd.
> http://www.rockitfactory.com/
> Web sites for rock bands
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to