MCPcopy Create free account
hub / github.com/BaseXdb/basex / isFile

Method isFile

basex-core/src/main/java/org/basex/core/CLI.java:172–175  ·  view source on GitHub ↗

Indicates if the specified string points to an existing file. @param input string @return return result of check

(final String input)

Source from the content-addressed store, hash-verified

170 * @return return result of check
171 */
172 protected static boolean isFile(final String input) {
173 final IO io = IO.get(input);
174 return !(io instanceof IOContent) && io.exists() && !io.isDir();
175 }
176
177 /**
178 * Indicates if this is a local client.

Callers 2

commandsMethod · 0.95
parseArgsMethod · 0.45

Calls 3

getMethod · 0.95
existsMethod · 0.95
isDirMethod · 0.95

Tested by

no test coverage detected