Skip to content

Commit

Permalink
removed system outs
Browse files Browse the repository at this point in the history
  • Loading branch information
car031 committed May 16, 2023
1 parent 215c407 commit 7589997
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions logicaldoc-util/src/main/java/com/logicaldoc/util/io/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -649,31 +649,21 @@ public static void copyFile(File source, File target) throws IOException {
}

public static void strongDelete(File file) {

System.out.println("file: "+file.getAbsolutePath());

try {
if (file != null && file.exists())
FileUtils.forceDelete(file);
} catch (IOException e) {
log.warn(e.getMessage());
}

System.out.println("file2: "+file.getAbsolutePath());

try {
if (file != null && file.exists())
Files.deleteIfExists(file.toPath());
} catch (IOException e) {
log.warn(e.getMessage());
}

System.out.println("file3: "+file.getAbsolutePath());

if (file != null && file.exists())
deleteUsingOSCommand(file);

System.out.println("file4: "+file.getAbsolutePath());
}

private static void deleteUsingOSCommand(File file) {
Expand Down

0 comments on commit 7589997

Please sign in to comment.