On Wed, Oct 20, 1999 at 02:10:53PM +0200, Jean-Yves BARBIER wrote: > Hi, > > I wonder if somebody has found how to recover files downloaded > (especially from ftp) in the netscape cache? > (these files which are printed to the screen while dowload them) A friend of mine wrote a small script to see what's in the netscape cache some time ago, maybe you can use it. However, I don't know if this works with ftp'd files...
Wouter. #!/usr/bin/perl # # parse a .netscape/cache/index.db file use DB_File; $DB= "$ENV{HOME}/.netscape/cache/index.db"; $DB= $ARGV[0] if $ARGV[0]; tie(%hash, , "DB_File", $DB, 0, 0, $DB_HASH) || die "$DB: $!\n"; while ( ($k,$v)= each %hash) { $url= substr($k, 8, length($k)-13); $file= substr($v, 33); $file =~ s/\000.*//s; next unless $file; print "$file $url\n"; }