diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/FTPClient.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/FTPClient.java index cc781b556..97afd0878 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/FTPClient.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/FTPClient.java @@ -9,6 +9,7 @@ import org.hl7.fhir.exceptions.FHIRException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; import java.io.FileInputStream; import java.io.IOException; @@ -209,7 +210,7 @@ public class FTPClient { if (path.startsWith(remoteSeparator)) { throw new IllegalArgumentException("Absolute remote path is not permitted. Path: " + path); } - return String.join(remoteSeparator, path); + return String.join(remoteSeparator, path.replace(File.separator, remoteSeparator)); } /**