Hi,

   +-From: Diego Marconato <lewisstra...@hotmail.com> --
   |_Date: Fri, 2 Mar 2012 16:26:14 +0100 ______________
   |
   |I recently started using to manage the download JSch remotely via sftp.
   |Among the various features I can not find the command the procedure that
   |will allow me to have the size in bytes of a remote file.

 SftpATTRS attr = ((ChannelSftp)c).stat("/etc/motd");
 System.out.println(attr.getSize());


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to