Forum Moderators: coopster & phranque

Message Too Old, No Replies

How do you get a file's stats with Net::FTP?

date created specifically...

         

MonkeeSage

11:48 am on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



^ Thread title

Jordan

claus

12:14 pm on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can never get date created unless it's also date last modified. For modified date you can use this:

mdtm ( FILE )

Modified example from synopsis:

use Net::FTP;

$ftp = Net::FTP->new("some.host.name", Debug => 0);
$ftp->login("anonymous",'me@here.there');
$ftp->cwd("/pub");
$ftp->mdtm("that.file");

Link: [xav.com...]

/claus

MonkeeSage

12:21 pm on Aug 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Works perfectly. Thanks claus! :)

Thanks for the reference too, I was having a heck of a time finding anything useful on perldoc. i was just blindly trying FTP cmds, heh. Not the most productive way of doing things.

Jordan