From 6848e2e65a9f737e956d98c8468e48ad5fa3f5bc Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 13 Nov 2024 22:46:17 +0000
Subject: [PATCH] Aenderungen an fm eingebaut

---
 src/de/uhilger/neon/fm/FileManipulator.java |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/de/uhilger/neon/fm/FileManipulator.java b/src/de/uhilger/neon/fm/FileManipulator.java
index 5b4d3c5..5565c3a 100644
--- a/src/de/uhilger/neon/fm/FileManipulator.java
+++ b/src/de/uhilger/neon/fm/FileManipulator.java
@@ -20,7 +20,6 @@
 import com.sun.net.httpserver.HttpExchange;
 import de.uhilger.neon.FileServer;
 import de.uhilger.neon.HttpResponder;
-import de.uhilger.fm.Const;
 import de.uhilger.fm.Duplicator;
 import de.uhilger.fm.Mover;
 import de.uhilger.fm.Renamer;
@@ -66,16 +65,16 @@
         switch (params[0]) {
           case P_RENAME:
             h.inspectFileName(params[1]);
-            String neuerDateiName = new Renamer().umbenennen(exchange, fileName, params[1], file);
+            String neuerDateiName = new Renamer().umbenennen(fileName, params[1], file);
             antwort(exchange, HttpResponder.SC_OK, neuerDateiName);
             break;
           case P_COPY:
             h.inspectFileName(params[1]);
-            copyOrMove(exchange, params[1], fileName, Const.OP_COPY);
+            copyOrMove(exchange, params[1], fileName, Mover.OP_COPY);
             break;
           case P_MOVE:
             h.inspectFileName(params[1]);
-            copyOrMove(exchange, params[1], fileName, Const.OP_MOVE);
+            copyOrMove(exchange, params[1], fileName, Mover.OP_MOVE);
             break;
           case P_DUPLICATE:
             if (Boolean.parseBoolean(params[1])) {

--
Gitblit v1.9.3