question: public List < FileStatus > browse ( String filePath ) throws Exception { LOG . info ( "HDFS File Path   :  " + filePath + "   and EndPoint  : " + hdfsEndPoint ) ; FileSystem hdfsFileSystem = null ; FileStatus [ ] listStatus ; try { Configuration config = createConfig ( ) ; hdfsFileSystem = getFileSystem ( config ) ; Path path = new Path ( filePath ) ; listStatus = hdfsFileSystem . listStatus ( path ) ; } catch ( Exception ex ) { LOG . error ( " Exception when browsing files for the path " + filePath , ex . getMessage ( ) ) ; throw new Exception ( " Exception When browsing Files in HDFS .. Message :  " + ex . getMessage ( ) ) ; } finally { if ( hdfsFileSystem != null ) hdfsFileSystem . close ( ) ; } return Arrays . asList ( listStatus ) ; }
target:  Brows the Files for the specific Path