src/de/uhilger/fm/Const.java | ●●●●● patch | view | raw | blame | history | |
src/de/uhilger/fm/Deflator.java | ●●●●● patch | view | raw | blame | history | |
src/de/uhilger/fm/Eraser.java | ●●●●● patch | view | raw | blame | history |
src/de/uhilger/fm/Const.java
File was deleted src/de/uhilger/fm/Deflator.java
@@ -33,6 +33,8 @@ */ public class Deflator { private final String STR_SLASH = "/"; /* --------------- Ordner packen ----------------- */ /** * Einen Ordner packen. @@ -51,7 +53,7 @@ try { //String fName = getFileName(e); //logger.fine("fName: " + fName); if (fName.endsWith(Const.STR_SLASH)) { if (fName.endsWith(STR_SLASH)) { File dir = new File(base, fName); if (dir.isDirectory()) { //logger.fine("absPath: " + dir.getAbsolutePath()); src/de/uhilger/fm/Eraser.java
@@ -33,11 +33,13 @@ public static final int OP_DELETE = 3; private final String STR_DOT = "."; public String deleteFiles(String relPath, List<String> fileNames, String base) { String result = null; try { //logger.fine(fileNames.toString()); if (!relPath.startsWith(Const.STR_DOT)) { if (!relPath.startsWith(STR_DOT)) { File targetDir = new File(base, relPath); // getTargetDir(relPath); //logger.fine("targetDir: " + targetDir); for (String fileName : fileNames) { @@ -73,7 +75,7 @@ private void deleteImgFiles(File targetDir, File targetFile) throws IOException { String fnameext = targetFile.getName(); int dotpos = fnameext.lastIndexOf(Const.STR_DOT); int dotpos = fnameext.lastIndexOf(STR_DOT); String fname = fnameext.substring(0, dotpos); String ext = fnameext.substring(dotpos); //logger.fine("fname: " + fname + ", ext: " + ext);