Returns true iff the given directory has a file with the given name.
(File tokenFile)
| 216 | |
| 217 | /** Returns true iff the given directory has a file with the given name. */ |
| 218 | public static boolean hasTokenFile(File tokenFile) throws IOException { |
| 219 | return hasToken(tokenFile.getParentFile(), tokenFile.getName()); |
| 220 | } |
| 221 | |
| 222 | /** Returns true iff the given directory has a file with the given name containing the given content. */ |
| 223 | public static boolean hasTokenFile(File tokenFile, String content) throws IOException { |