From: Oberhuber, Martin <Martin.Oberhuber@wi...> - 2006-05-17 16:00:10
I can't find a way how to avoid globbing in ChannelSftp.
The characters '*' and '?' are valid parts of UNIX file names.
For instance, on a shell, you can do
mv myfile "my*file"
You cannot use jsch / ChannelSftp to create such files
e.g. with the rename operation, since it would glob.
I would suggest adding an option to switch Sftp globbing
which would be useful for IDE-like tools that typically
do not support globbing like commandline-like tools.
Martin Oberhuber - WindRiver, Austria
+-From: "Oberhuber, Martin" <Martin.Oberhuber@...> --
|_Date: Wed, 17 May 2006 17:59:38 +0200 __
|I can't find a way how to avoid globbing in ChannelSftp.
|The characters '*' and '?' are valid parts of UNIX file names.
|For instance, on a shell, you can do
| mv myfile "my*file"
|You cannot use jsch / ChannelSftp to create such files
|e.g. with the rename operation, since it would glob.
I have intended to use \ in such a case,
but I have found that
put foo my\*file
rename foo my\*file
will not work if my*file does not exist on the remote.
I have fixed the code. Please try
# Please not that my\*file will be expressed as "my\\*file"
# in the java language, needless to say.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Get latest updates about Open Source Projects, Conferences and News.