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

Method hasToken

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

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

(File dir, String name)

Source from the content-addressed store, hash-verified

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 {

Callers 3

hasTokenFileMethod · 0.95
p2isCleanMethod · 0.95
isInstalledMethod · 0.95

Calls 2

readTokenMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected