Returns true iff the given directory has a file with the given name.
(File dir, String name)
| 206 | |
| 207 | /** Returns true iff the given directory has a file with the given name. */ |
| 208 | public static boolean hasToken(File dir, String name) throws IOException { |
| 209 | return readToken(dir, name).isPresent(); |
| 210 | } |
| 211 | |
| 212 | /** Returns true iff the given directory has a file with the given name containing the given content. */ |
| 213 | public static boolean hasToken(File dir, String name, String content) throws IOException { |
no test coverage detected