|
|
|
@ -70,7 +70,7 @@ public class TradeSecureServiceHanyinImpl implements TradeSecureService {
|
|
|
|
|
String dateString = file.getTransDate().toString("yyyyMMdd");
|
|
|
|
|
Vector<ChannelSftp.LsEntry> folders = command.ls("/royalpay");
|
|
|
|
|
String dir = "/royalpay/" + dateString;
|
|
|
|
|
if (folders.parallelStream().noneMatch(entry -> entry.getFilename().equals(dateString))) {
|
|
|
|
|
if (folders.parallelStream().noneMatch(entry -> entry.getFilename().endsWith(dateString))) {
|
|
|
|
|
logger.debug("mk dir:{}", dir);
|
|
|
|
|
command.mkdir(dir);
|
|
|
|
|
}
|
|
|
|
|