|
|
@ -4,6 +4,7 @@ import java.io.File;
|
|
|
|
import java.nio.file.Files;
|
|
|
|
import java.nio.file.Files;
|
|
|
|
import java.nio.file.Path;
|
|
|
|
import java.nio.file.Path;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
import java.nio.file.Paths;
|
|
|
|
|
|
|
|
import java.nio.file.StandardCopyOption;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
@ -225,7 +226,7 @@ public abstract class FileJobBean extends AbstractComponent {
|
|
|
|
paths.forEach(src -> {
|
|
|
|
paths.forEach(src -> {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Path dest = Paths.get(destDir + File.separator + src.getFileName());
|
|
|
|
Path dest = Paths.get(destDir + File.separator + src.getFileName());
|
|
|
|
Files.move(src, dest);
|
|
|
|
Files.move(src, dest, StandardCopyOption.REPLACE_EXISTING);
|
|
|
|
log().debug(src.toAbsolutePath() + " -> " + dest.toAbsolutePath());
|
|
|
|
log().debug(src.toAbsolutePath() + " -> " + dest.toAbsolutePath());
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
throw runtimeException(e);
|
|
|
|
throw runtimeException(e);
|
|
|
|