ssh2.cr icon indicating copy to clipboard operation
ssh2.cr copied to clipboard

No st_mtimespec method ?

Open waghanza opened this issue 7 years ago • 0 comments

Hi @datanoise,

I have a error on https://github.com/datanoise/ssh2.cr/blob/778a060e4a683ef587a2896840278030e59cc013/src/session.cr#L307

The error message is

in lib/ssh2/src/session.cr:307: undefined method 'st_mtimespec' for LibC::Stat

             stat.st_mtimespec.tv_sec, stat.st_atimespec.tv_sec) do |ch|

This error appear when using scp_send_file with a absolute path

Regards,

waghanza avatar Oct 30 '18 08:10 waghanza