MCPcopy Create free account
hub / github.com/davidgiven/luje / exists

Method exists

lib/java/io/File.java:444–453  ·  view source on GitHub ↗

Returns a boolean indicating whether this file can be found on the underlying file system. @return true if this file exists, false otherwise. @throws SecurityException if a SecurityManager is installed and it denies read access to this file. @see #get

()

Source from the content-addressed store, hash-verified

442 * @see java.lang.SecurityManager#checkRead(FileDescriptor)
443 */
444 public boolean exists() {
445 if (path.length() == 0) {
446 return false;
447 }
448// SecurityManager security = System.getSecurityManager();
449// if (security != null) {
450// security.checkRead(path);
451// }
452 return existsImpl(properPath(true));
453 }
454
455 private native boolean existsImpl(byte[] filePath);
456

Callers 1

mkdirsMethod · 0.95

Calls 3

existsImplMethod · 0.95
properPathMethod · 0.95
lengthMethod · 0.65

Tested by

no test coverage detected