def hadoop_fs_ls(stdout, stderr, environ, *args):
 if (mock_hadoop_uses_yarn(environ) and args and (args[0] == '-R')):
  path_args = args[1:]
  recursive = True
 else:
  path_args = args
  recursive = False
 return _hadoop_fs_ls('ls', stdout, stderr, environ, path_args=path_args, recursive=recursive)

def hadoop_fs_ls ( stdout , stderr , environ , * args ) : if ( mock_hadoop_uses_yarn ( environ ) and args and ( args [ 0 ] == '-R' ) ) : path_args = args [ 1 : ] recursive = True else : path_args = args recursive = False return _hadoop_fs_ls ( 'ls' , stdout , stderr , environ , path_args = path_args , recursive = recursive )
implements hadoop fs -ls .