#NEWLINE# def ls( self , src , extra_args = [ ] ) : #NEWLINE# #INDENT# 'List files in a directory' #NEWLINE# src = [ self . _full_hdfs_path ( x ) for x in src ] #NEWLINE# output = self . _getStdOutCmd ( ( ( [ self . _hadoop_cmd , 'fs' , '-ls' ] + extra_args ) + src ) , True ) #NEWLINE# return self . _transform_ls_output ( output , self . hdfs_url )