perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <>
Subject Re: Trying to get File and Directory info off of external server quickly
Date Mon, 01 Aug 2005 23:28:38 GMT
On Mon, 1 Aug 2005, Boysenberry Payne wrote:

> I'm not sure if HEAD would work.
> Basically, I'm trying to read a directory's files.
> After I confirm a file exists and doesn't have zero
> size I check that it has the appropriate extension
> for the directory then I add the directory address,
> file name and extension to a table in our database.

Can you get someone on the remote server to do a
    cd top_level_directory
    ls -lR > ls-lR  # or find -fls find-ls
    gzip ls-lR      # or gzip find-ls
periodically, and then you can grab and parse ls-lR.gz or 

best regards,
randy kobes

View raw message