[jcifs] Plusses, again.
rob at wygand.com
Thu Jan 24 12:32:38 EST 2002
That diff I sent earlier? Causes another problem... if I attempt to call
delete() on an SmbFile of a directory that has a file as a descendant
that contains a +, the entire delete will fail.
If my directory looks like //server/share/foo/bar/some+.txt
SmbFile x = new SmbFile ("smb://server/share/foo");
fails with a file does not exists exception.
Obviously, this is not supported, as it's some hack of mine.. but I
wanted to make you aware of it in case you thought my patch look alright.
Rob Wygand wrote:
> Allen, Michael B (RSCH) wrote:
>> I don't think we can do that. The '@' sign needs to be encoded
>> before being parsed
>> because of the following scenario:
> You're right, of course... I was just trying to brainstorm here, but
> none of my suggestions were really workable.
> I would be nice to have a getDecodedName() though, because otherwise
> everyone's code will be littered with URLDecoder.decode (file.getName())
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3229 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.samba.org/archive/jcifs/attachments/20020123/c60a80bb/smime.bin
More information about the jcifs