diff --git a/clearing-parent/xml-importer/src/main/java/ru/spcex/clearing/xml/importer/services/FileChecker.java b/clearing-parent/xml-importer/src/main/java/ru/spcex/clearing/xml/importer/services/FileChecker.java index eaec96429..cc1cf45a4 100644 --- a/clearing-parent/xml-importer/src/main/java/ru/spcex/clearing/xml/importer/services/FileChecker.java +++ b/clearing-parent/xml-importer/src/main/java/ru/spcex/clearing/xml/importer/services/FileChecker.java @@ -106,6 +106,7 @@ public class FileChecker { gatewaySdf.ifPresent(gateway -> { for (String path : settings.getStore().getSftpIn().getSftpSrcPayValDir().values()) { + if (!path.endsWith("/")) path += "/"; files.addAll(gateway.listFiles(path)); } }); @@ -118,6 +119,7 @@ public class FileChecker { gatewayLks.ifPresent(gateway -> { for (String path : settings.getStoreLks().getSftpIn().getSftpSrcPayValDir().values()) { + if (!path.endsWith("/")) path += "/"; files.addAll(gateway.listFiles(path)); } });