Merge pull request #1188 from hapifhir/gg-202303-ftp-windows
Fix FTP problem on windows
This commit is contained in:
commit
7bf243f593
|
@ -9,6 +9,7 @@ import org.hl7.fhir.exceptions.FHIRException;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
|
@ -210,7 +211,7 @@ public class FTPClient {
|
||||||
if (path.startsWith(remoteSeparator)) {
|
if (path.startsWith(remoteSeparator)) {
|
||||||
throw new IllegalArgumentException("Absolute remote path is not permitted. Path: " + path);
|
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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue