INT-1697 set remoteFileSeparator tp be '/'

This commit is contained in:
Oleg Zhurakousky
2010-12-17 16:29:39 -05:00
parent 3131d217d1
commit 9927b3e4eb

View File

@@ -49,6 +49,7 @@ import org.springframework.util.ObjectUtils;
*/
public abstract class AbstractInboundFileSynchronizer<F> implements InboundFileSynchronizer, InitializingBean {
private String remoteFileSeparator = "/";
/**
* Extension used when downloading files. We change it right after we know it's downloaded.
*/
@@ -145,7 +146,7 @@ public abstract class AbstractInboundFileSynchronizer<F> implements InboundFileS
private void copyFileToLocalDirectory(String remoteDirectoryPath, F remoteFile, File localDirectory, Session session) throws IOException {
String remoteFileName = this.getFilename(remoteFile);
String remoteFilePath = remoteDirectoryPath + File.separator + remoteFileName;
String remoteFilePath = remoteDirectoryPath + remoteFileSeparator + remoteFileName;
if (!this.isFile(remoteFile)) {
if (logger.isDebugEnabled()) {
logger.debug("cannot copy, not a file: " + remoteFilePath);