[jcifs] Case and Rename.
Rob Wygand
rob at filefish.com
Fri Nov 30 12:56:39 EST 2001
Mike,
Found a sort of esoteric bug...
if you try and rename one SmbFile to another SmbFile that differs only
by case, the file gets deleted.
So, as an example:
SmbFile src = new SmbFile ("smb://server/share/file.txt");
SmbFile dest = new SmbFile ("smb://server/share/File.txt");
src.renameTo (dest);
Expected behaviour would be for the file to be renamed (such as
smbclient does)... Looking at the renameTo function, I see exactly why
it does what it does, but, ideally, is should allow the rename through.
rjw
More information about the jcifs
mailing list