diff --git a/primitiveFTPd/src/org/primftpd/filesystem/SafFile.java b/primitiveFTPd/src/org/primftpd/filesystem/SafFile.java index e078a959..42bdd1b7 100644 --- a/primitiveFTPd/src/org/primftpd/filesystem/SafFile.java +++ b/primitiveFTPd/src/org/primftpd/filesystem/SafFile.java @@ -161,7 +161,7 @@ public boolean delete() { public boolean move(SafFile destination) { logger.trace("[{}] move({})", name, destination.getAbsolutePath()); - if (writable && documentFile != null) { + if (writable && documentFile != null && Utils.parent(this.absPath).equals(Utils.parent(destination.getAbsolutePath()))) { postClientAction(ClientActionEvent.ClientAction.RENAME); return documentFile.renameTo(destination.getName()); }