From 336d9738e67e992f5710467e507801bfc2216b92 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Thu, 14 Nov 2024 11:26:39 +0000
Subject: [PATCH] Aenderungen an fm eingebaut

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

diff --git a/src/de/uhilger/neon/fm/FileManipulator.java b/src/de/uhilger/neon/fm/FileManipulator.java
index 88bdedd..dea05e7 100644
--- a/src/de/uhilger/neon/fm/FileManipulator.java
+++ b/src/de/uhilger/neon/fm/FileManipulator.java
@@ -111,7 +111,12 @@
 
   private void copyOrMove(HttpExchange exchange, String quelle, String ziel, int op) throws IOException {
     String[] dateiNamen = dateiliste(exchange);
-    new Mover().copyOrMoveFiles(quelle, ziel, dateiNamen, op, base);
+    if(op == Mover.OP_COPY) {
+      new Mover().copy(quelle, ziel, dateiNamen, base);
+    } else {
+      new Mover().move(quelle, ziel, dateiNamen, base);
+    }            
+    //new Mover().copyOrMoveFiles(quelle, ziel, dateiNamen, op, base);
     antwort(exchange, HttpResponder.SC_OK, "Dateien verarbeitet.");
   }
 

--
Gitblit v1.9.3