From b3d917571a5f952531ce3e060861e1a158bc04c7 Mon Sep 17 00:00:00 2001 From: ulrich Date: Tue, 19 Nov 2024 17:25:47 +0000 Subject: [PATCH] Dokumentation in Arbeit: FileCreator fertig dokumentiert, kleinere Anpassungen --- src/de/uhilger/neon/fm/FileManipulator.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/de/uhilger/neon/fm/FileManipulator.java b/src/de/uhilger/neon/fm/FileManipulator.java index 88bdedd..d643b9a 100644 --- a/src/de/uhilger/neon/fm/FileManipulator.java +++ b/src/de/uhilger/neon/fm/FileManipulator.java @@ -58,7 +58,7 @@ public void run(HttpExchange exchange) { try { - super.run(exchange); + init(exchange); String query = exchange.getRequestURI().getQuery(); if (query != null) { String[] params = query.split(FileServer.STR_EQUAL); @@ -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