- Timestamp:
- 2016-05-18T11:41:49+12:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/XSLTUtil.java
r30477 r30542 554 554 return new Locale(display_lang).getDisplayLanguage(new Locale(lang)); 555 555 } 556 557 public static boolean checkFileExistence(String site_name, String filePath){ 558 559 String gsdl3_home = GlobalProperties.getGSDL3Home(); 560 //Remove leading file separator 561 filePath = filePath.replaceAll("^/+", ""); 562 //Remove duplicates and replace by separator for current platform 563 filePath = filePath.replaceAll("/+", File.separator); 564 //Create full path to check 565 String fullPath = GSFile.siteHome(gsdl3_home, site_name) + File.separator + filePath; 566 File file = new File(fullPath); 567 if (file.exists() && file.isFile()) { 568 return true; 569 } 570 return false; 571 } 572 556 573 public static String uriEncode(String input) 557 574 {
Note:
See TracChangeset
for help on using the changeset viewer.