public boolean exists(){
  SecurityManager security=System.getSecurityManager();
  if (security != null) {
    security.checkRead(path);
  }
  if (isInvalid()) {
    return false;
  }
  return ((fs.getBooleanAttributes(this) & FileSystem.BA_EXISTS) != 0);
}

public boolean exists ( ) { SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { security . checkRead ( path ) ; } if ( isInvalid ( ) ) { return false ; } return ( ( fs . getBooleanAttributes ( this ) & FileSystem . BA_EXISTS ) != 0 ) ; }
tests whether the file or directory denoted by this abstract pathname exists .
