Get the absolute path to a file or directory within #resourceBaseFolder @param foldersAndFile - a list of optional folders in path with the actual file name as the last in the list @return a file
(String... foldersAndFile)
| 49 | * @return a file |
| 50 | */ |
| 51 | public static String get(String... foldersAndFile) throws FileNotFoundException { |
| 52 | String filePath = pathPrefix + File.separator + StringUtils.join(foldersAndFile, File.separator); |
| 53 | File file = new File(filePath); |
| 54 | if (!file.exists()) { |
| 55 | throw new FileNotFoundException(filePath); |
| 56 | } |
| 57 | return filePath; |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Get a File object for a file or directory within {@link #resourceBaseFolder} |
no outgoing calls
no test coverage detected