public static boolean isFolderExist ( String directoryPath ) { if ( StringUtils . isEmpty ( directoryPath ) ) { return false ; } File dire = new File ( directoryPath ) ; return ( dire . exists ( ) && dire . isDirectory ( ) ) ; }
Indicates if this file represents a directory on the underlying file system .