* On Mac or Windows, file.exists() is not case sensitive, so do an
* additional check with case sensitivity
*/
- int slashPos = href.lastIndexOf("/");
+ int slashPos = href.lastIndexOf(File.separator);
String expectedFileName = slashPos == -1 ? href : href
.substring(slashPos + 1);
String cp = hrefFile.getCanonicalPath();
- slashPos = cp.lastIndexOf("/");
+ slashPos = cp.lastIndexOf(File.separator);
String actualFileName = slashPos == -1 ? cp : cp
.substring(slashPos + 1);