Hi,

   +-From: "CHEN Xiaolei A" <[email protected]> --
   |_Date: Tue, 14 Sep 2010 15:38:42 +0800 _________________________
   |
   ...
   |       Does this mean  I need to use ChannelSftp.lstat rather than
   |ChannelSftp.stat,  when remote target is a symbol link under Unix OS ?

Those methods will invoke system calls stat and lstat on the remote.

   $ man lstat
     ...
       stat stats the file pointed to by file_name and  fills  in buf.

       lstat  is  identical to stat, except in the case of a sym-
       bolic link, where the link itself is stated, not the  file
       that it refers to.
     ...


   |2.  How could I get the owner of file
   |     I did not find method in class SftpATTRS.

Unfortunately, Sftp protocol does not reveal the name of file owner,
but it provides user-id and group-id;
  * SftpATTRS#getUId()
  * SftpATTRS#getGId()


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
Twitter: @ymnk

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to