Quote:
Originally Posted by
ajayram_arya
This script couldnt match the pattern i have in the file.
And what pattern was that?
Quote:
mdtm is part of Net::FTP. So it will work on any server as long as Net::FTP module was installed.
This is not hypothetical. Your script throws tons of errors about mdtm on my system --
my ftp server doesn't have that.
The output of ls
looks different on different FTP servers. Some show mtime -- some don't.
What ls in FTP is supposed to look like has no standard at all. FTP is very simple, stupid, and messy... That's why a perl module like this is such a blessing, it deals with that mess for you and gives you a straightforward list.
But it can't invent an mdtm out of nothing. If the other end doesn't list that, you don't get it.
The only thing you can depend on getting is the filename. You only get sizes and dates if you're lucky.