Is there any way to get the date modified from Net::SSH or NET::SFTP commands in ruby?
- by btelles
Hi there,
Is there an easy way to get the date modified of a file by using Net::SFTP?
It'd be nice to be able to do this:
Net::SFTP.start('some_server') do |sftp|
sftp.dir.glob('*').each do |file|
puts file.mtime
end
end
But that's not possible (to my knowledge).
Berns.