Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How can I get the timestamp of a file on a FTP server?

by spaz (Pilgrim)
on Feb 16, 2001 at 01:05 UTC ( [id://58718]=note: print w/replies, xml ) Need Help??


in reply to How can I get the timestamp of a file on a FTP server?

I assume you're using Net::FTP, and if you're not you should be.
You can use the dir method to get a listing of files and directories, you can then iterate over that list and execute the mdtm( $file ) method on each file, which will give you the modification date.
The rest is left as an exercise for the reader.

--Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://58718]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found