This file is indexed.

/usr/lib/python2.7/dist-packages/fiona/fio/ls.py is in python-fiona 1.7.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"""$ fiona ls"""


import json

import click
from cligj import indent_opt

import fiona


@click.command()
@click.argument('input', type=click.Path(exists=True))
@indent_opt
@click.pass_context
def ls(ctx, input, indent):

    """
    List layers in a datasource.
    """

    verbosity = (ctx.obj and ctx.obj['verbosity']) or 2

    with fiona.drivers(CPL_DEBUG=verbosity > 2):
        result = fiona.listlayers(input)
        click.echo(json.dumps(result, indent=indent))