Is there any way to get the date modified from Net::SSH or NET::SFTP commands in ruby?
Posted
by btelles
on Stack Overflow
See other posts from Stack Overflow
or by btelles
Published on 2010-04-20T20:34:04Z
Indexed on
2010/04/20
21:03 UTC
Read the original article
Hit count: 568
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.
© Stack Overflow or respective owner