Code example for File

Methods: getParentFile, isDirectory, toString

0
            } 
        } 
         
         
        // if that's not a directory -> List its parent 
        if(!directory.isDirectory()){
            Log_OC.w(TAG, "You see, that is not a directory -> " + directory.toString());
            directory = directory.getParentFile();
        } 
 
        mList.clearChoices();   // by now, only files in the same directory will be kept as selected 
        mAdapter.swapDirectory(directory);
        if (mDirectory == null || !mDirectory.equals(directory)) {
            mList.setSelectionFromTop(0, 0); 
        } 
        mDirectory = directory;
    } 
     
 
    /** 
     * Returns the fule paths to the files checked by the user