public void listDirectory(File directory){
  if (directory == null) {
    if (mDirectory != null) {
      directory=mDirectory;
    }
 else {
      directory=Environment.getExternalStorageDirectory();
      if (directory == null)       return;
    }
  }
  if (!directory.isDirectory()) {
    Log_OC.w(TAG,"You see, that is not a directory -> " + directory.toString());
    directory=directory.getParentFile();
  }
  mAdapter.swapDirectory(directory);
  if (mDirectory == null || !mDirectory.equals(directory)) {
  }
  mDirectory=directory;
}

public void listDirectory ( File directory ) { if ( directory == null ) { if ( mDirectory != null ) { directory = mDirectory ; } else { directory = Environment . getExternalStorageDirectory ( ) ; if ( directory == null ) return ; } } if ( ! directory . isDirectory ( ) ) { Log_OC . w ( TAG , "You see, that is not a directory -> " + directory . toString ( ) ) ; directory = directory . getParentFile ( ) ; } mAdapter . swapDirectory ( directory ) ; if ( mDirectory == null || ! mDirectory . equals ( directory ) ) { } mDirectory = directory ; }
lists the given directory on the view . when the input parameter is null , it will either refresh the last known directory . list the root if there never was a directory .
