SFTP and time stamp

I used sftp to upload local file to remote path.

I can capture the timestamp on local site,

but I can’t capture the timestamp on remote site

I used “Time.at((sftp.stat(remote_file)).mtime)” to capture

but it always show error.

How do I fix this problems?

-----Messaggio originale-----
Da: CC Chen [mailto:[email protected]]
Inviato: mercoled 28 dicembre 2011 10:33
A: ruby-talk ML
Oggetto: SFTP and time stamp

I used sftp to upload local file to remote path.

I can capture the timestamp on local site,

but I can’t capture the timestamp on remote site

I used “Time.at((sftp.stat(remote_file)).mtime)” to capture

but it always show error.

How do I fix this problems?


Posted via http://www.ruby-forum.com/.


Caselle da 1GB, trasmetti allegati fino a 3GB e in piu’ IMAP, POP3 e
SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f

Sponsor:
Riccione Hotel 3 stelle in centro: Pacchetto Capodanno mezza pensione,
animazione bimbi, zona relax, parcheggio. Scopri l’offerta solo per
oggi…
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid982&d)-12