Hi, +-From: "Viet H. Phan" <hoangvietp...@yahoo.com> -- |_Date: Fri, 6 May 2011 03:09:44 -0700 (PDT) ______ | |Hi, I have also faced this kind of issue. Some systems allow |existence of a directory and a file name with the same name,
It is interesting. Which systems have two name spaces for files and directories? | but |JSch does check if there is a directory with the same name |before putting a file to an SFTP server. I think it's better that |JSch doesn't do that checking. If the SFTP server detects any |violation, it would return an error. Suppose that there exists a directory "/tmp/foo" on the remote. With sftp command from OpenSSH, sftp> put foo /tmp/foo "/tmp/foo/foo" will be created on the remote. Such an operation can not be done without checking if /tmp/foo is a directory or not. Do you have a problem with OpenSSH's sftp command for your case? 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: http://twitter.com/ymnk ------------------------------------------------------------------------------ Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay _______________________________________________ JSch-users mailing list JSch-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jsch-users