@app.get('/dossier/v1/folder/<fid>/subfolder', json=True)
def v1_subfolder_list(request, response, kvlclient, fid):
    '''Retrieves a list of subfolders in a folder for the current user.

    The route for this endpoint is:
    ``GET /dossier/v1/folder/<fid>/subfolder``.

    (Temporarily, the "current user" can be set via the
    ``annotator_id`` query parameter.)

    The payload returned is a list of subfolder identifiers.
    '''
    fid = urllib.unquote(fid)
    try:
        return sorted(imap(attrgetter('name'),
                           ifilter(lambda it: it.is_folder(),
                                   new_folders(kvlclient, request).list(fid))))
    except __HOLE__:
        response.status = 404
        return []
dataset/ETHPy150Open dossier/dossier.web/dossier/web/routes.py/v1_subfolder_list