public boolean handleEntry(String startingDir){
  File startingFile=null;
  if (startingDir != null) {
    startingFile=new File(startingDir);
    if (!startingFile.exists()) {
      startingFile=null;
      Debug.output("RpfFileSearch: " + startingDir + " doesn't exist.");
      return false;
    }
  }
  if (startingFile == null) {
    return false;
  }
  boolean rpfDir=false;
  String start=startingFile.getAbsolutePath();
  if ((start.indexOf("RPF") != -1) || (start.indexOf("rpf") != -1)) {
    rpfDir=true;
  }
  if (Debug.debugging("maketoc")) {
    Debug.output("RpfFileSearch: Starting RPF file search from " + startingDir + ", RPF directory "+ (rpfDir ? "found." : "not found."));
  }
  handleEntry(startingFile,rpfDir);
  return true;
}

public boolean handleEntry ( String startingDir ) { File startingFile = null ; if ( startingDir != null ) { startingFile = new File ( startingDir ) ; if ( ! startingFile . exists ( ) ) { startingFile = null ; Debug . output ( "RpfFileSearch: " + startingDir + " doesn't exist." ) ; return false ; } } if ( startingFile == null ) { return false ; } boolean rpfDir = false ; String start = startingFile . getAbsolutePath ( ) ; if ( ( start . indexOf ( "RPF" ) != - 1 ) || ( start . indexOf ( "rpf" ) != - 1 ) ) { rpfDir = true ; } if ( Debug . debugging ( "maketoc" ) ) { Debug . output ( "RpfFileSearch: Starting RPF file search from " + startingDir + ", RPF directory " + ( rpfDir ? "found." : "not found." ) ) ; } handleEntry ( startingFile , rpfDir ) ; return true ; }
search , starting with the given directory pathname .
