#NEWLINE# def listValues( self , prefix = '' ) : #NEWLINE# #INDENT# values = [ ] #NEWLINE# directories = [ prefix ] #NEWLINE# hdfs_client = self . hdfs_client #NEWLINE# while ( len ( directories ) > 0 ) : #NEWLINE# #INDENT# directory = directories . pop ( ) #NEWLINE# for ( path , item ) in hdfs_client . list ( directory ) : #NEWLINE# #INDENT# if ( item [ 'type' ] == 'FILE' ) : #NEWLINE# #INDENT# values . append ( ( path [ len ( self . root_dir ) : ] , item [ 'length' ] , ( values [ 'modificationTime' ] / 1000 ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( item [ 'type' ] == 'DIRECTORY' ) : #NEWLINE# #INDENT# directories . append ( path ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return values