Skip to content

Commit

Permalink
SAF: disable move when renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
lmagyar committed Sep 3, 2024
1 parent dfe32dc commit bb2f7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion primitiveFTPd/src/org/primftpd/filesystem/SafFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public boolean delete() {

public boolean move(SafFile<T> 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());
}
Expand Down

0 comments on commit bb2f7d9

Please sign in to comment.