From 8e6840f2eaefe0f7b4763acd5edace0187bf29d3 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Mon, 15 Jan 2024 16:52:27 +0000
Subject: [PATCH] Umbenennen von FileManager in Klasse Renamer, Loeschen in Eraser verlegt

---
 src/de/uhilger/httpserver/cm/FileTransporter.java |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/de/uhilger/httpserver/cm/FileTransporter.java b/src/de/uhilger/httpserver/cm/FileTransporter.java
index d32e384..5b74f5f 100644
--- a/src/de/uhilger/httpserver/cm/FileTransporter.java
+++ b/src/de/uhilger/httpserver/cm/FileTransporter.java
@@ -18,7 +18,6 @@
 package de.uhilger.httpserver.cm;
 
 import java.io.File;
-import java.util.logging.Logger;
 
 /**
  * FileTransporter
@@ -27,8 +26,6 @@
  * @version 1, 04.07.2021
  */
 public class FileTransporter {
-
-  private static final Logger logger = Logger.getLogger(FileTransporter.class.getName());
 
   /**
    * Einen Namen fuer eine Datei erzeugen, der noch nicht existiert.
@@ -48,14 +45,14 @@
   public File getNewFileName(File file) {
     File dir = file.getParentFile();
     String targetName = file.getName();
-    logger.fine("targetName: " + targetName);
+    //logger.fine("targetName: " + targetName);
     String ext = "";
     int dotpos = targetName.indexOf(".");
     if (dotpos > -1) {
       ext = targetName.substring(dotpos);
       targetName = targetName.substring(0, dotpos);
     }
-    logger.fine("targetName: " + targetName + ", ext: " + ext);
+    //logger.fine("targetName: " + targetName + ", ext: " + ext);
     int i = 1;
     while (file.exists()) {
       StringBuffer buf = new StringBuffer();
@@ -68,7 +65,7 @@
       file = new File(dir, buf.toString());
       i++;
     }
-    logger.fine("new file: " + file.getName());
+    //logger.fine("new file: " + file.getName());
     return file;
   }
   

--
Gitblit v1.9.3