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