private boolean isValidFile ( final File file ) { return ( file != null && file . isDirectory ( ) && file . canRead ( ) && ( mConfig . allowReadOnlyDirectory ( ) || file . canWrite ( ) ) ) ; }
Returns true if the selected file or directory would be valid selection .