[jcifs] Case and Rename.
rob at filefish.com
Fri Nov 30 12:56:39 EST 2001
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");
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.
More information about the jcifs