(String path, String name)
| 85 | } |
| 86 | |
| 87 | public static String checkPath(String path, String name) throws FileNotFoundException { |
| 88 | if (path != null) path = path.trim(); |
| 89 | if (path == null || path.isEmpty()) return null; |
| 90 | |
| 91 | if (!FileUtil.exists(path)) { |
| 92 | throw new FileNotFoundException(name + " not found:" + path); |
| 93 | } |
| 94 | return path; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Create any directory in the list paths if it doesn't exist |
no test coverage detected