Skip to content

Commit

Permalink
0001563: View Staging Area Screen doesn't work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Feb 5, 2014
1 parent add2fac commit 7907304
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Expand Up @@ -77,6 +77,7 @@ public StagedResource(long threshold, File directory, File file, StagingManager
this.stagingManager = stagingManager;
this.file = file;
this.path = file.getAbsolutePath();
this.path = this.path.replaceAll("\\", "/");
this.path = this.path.substring(directory.getAbsolutePath().length(), file
.getAbsolutePath().length());
this.path = this.path.substring(1, path.lastIndexOf("."));
Expand Down
Expand Up @@ -146,7 +146,7 @@ protected String buildFilePath(Object... path) {
}
buffer.append(part);
if (i < path.length - 1) {
buffer.append(System.getProperty("file.separator"));
buffer.append("/");
}
}
return buffer.toString();
Expand Down

0 comments on commit 7907304

Please sign in to comment.