Skip to content

Commit 8e25c88

Browse files
Merge pull request cloudfoundry#166 from scottfrederick/win-upload
Use File.pathSeparator instead of platform-specific "/".
2 parents e44bb01 + a170d75 commit 8e25c88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudfoundry-client-lib/src/main/java/org/cloudfoundry/client/lib/archive/DirectoryApplicationArchive.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ private class EntryAdapter extends AbstractApplicationArchiveEntry {
7373
public EntryAdapter(File file) {
7474
this.file = file;
7575
this.name = file.getAbsolutePath().substring(directory.getAbsolutePath().length()+1);
76-
if(isDirectory()) {
77-
this.name = this.name + "/";
76+
if (isDirectory()) {
77+
this.name = this.name + File.separatorChar;
7878
}
7979
}
8080

0 commit comments

Comments
 (0)