// #7086 - (nf.exists() && !nf.equals(of)) instead of nf.exists() - fix for Win32
protected void rename(String oldName, String newName) throws IOException {
        File of = getFile (oldName);
        File nf = getFile (newName);
        // #7086 - (nf.exists() && !nf.equals(of)) instead of nf.exists() - fix for Win32
        if ((nf.exists() && !nf.equals(of)) || !of.renameTo (nf)) {
            FSException.io ("EXC_CannotRename", oldName, getDisplayName (), newName); // NOI18N
        }
    }
File of = getFile (oldName);
File nf = getFile (newName);
// #7086 - (nf.exists() && !nf.equals(of)) instead of nf.exists() - fix for Win32
if ((nf.exists() && !nf.equals(of)) || !of.renameTo (nf)) {
FSException.io ("EXC_CannotRename", oldName, getDisplayName (), newName); // NOI18N
protected void rename(String oldName, String newName) throws IOException {
File of = getFile (oldName);
File nf = getFile (newName);
// #7086 - (nf.exists() && !nf.equals(of)) instead of nf.exists() - fix for Win32
if ((nf.exists() && !nf.equals(of)) || !of.renameTo (nf)) {
FSException.io ("EXC_CannotRename", oldName, getDisplayName (), newName); // NOI18N
}
}
protected void rename(String oldName, String newName) throws IOException {
File of = getFile (oldName);
File nf = getFile (newName);
// #7086 - (nf.exists() && !nf.equals(of)) instead of nf.exists() - fix for Win32
if ((nf.exists() && !nf.equals(of)) || !of.renameTo (nf)) {
FSException.io ("EXC_CannotRename", oldName, getDisplayName (), newName); // NOI18N
}
}