MCPcopy Create free account
hub / github.com/diffplug/goomph / hasTokenFile

Method hasTokenFile

src/main/java/com/diffplug/gradle/FileMisc.java:218–220  ·  view source on GitHub ↗

Returns true iff the given directory has a file with the given name.

(File tokenFile)

Source from the content-addressed store, hash-verified

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 {

Callers 1

runMethod · 0.95

Calls 1

hasTokenMethod · 0.95

Tested by

no test coverage detected