Skip to content

Commit

Permalink
Another Small change to file separator use
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Greatrex committed May 8, 2014
1 parent b4ffa53 commit 6314da6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/jftp/connection/SftpConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class SftpConnection implements Connection {
private static final String COULD_NOT_FIND_FILE_MESSAGE = "Could not find file: %s";
private static final String DIRECTORY_DOES_NOT_EXIST_MESSAGE = "Directory %s does not exist.";
private static final String FILE_LISTING_ERROR_MESSAGE = "Unable to list files in directory %s";
private static final String FILE_SEPARATOR = System.getProperty("file.separator");
private static final String FILE_SEPARATOR = "/";

private static final int MILLIS = 1000;

Expand Down Expand Up @@ -137,7 +137,7 @@ private String determineRemotePath(String localFilePath, String remoteDirectory)
String safeRemotePath = remotePath.toString();
String uploadAs = Paths.get(localFilePath).getFileName().toString();

return safeRemotePath + remotePath.getFileSystem().getSeparator() + uploadAs;
return safeRemotePath + FILE_SEPARATOR + uploadAs;
}

private FtpFile toFtpFile(LsEntry lsEntry, String filePath) throws SftpException {
Expand Down

0 comments on commit 6314da6

Please sign in to comment.