public static boolean isFileExist ( String filePath ) { if ( StringUtils . isEmpty ( filePath ) ) { return false ; } File file = new File ( filePath ) ; return ( file . exists ( ) && file . isFile ( ) ) ; }
Indicates if this file represents a file on the underlying file system .