Reference

Find files

Finds paths by name or glob, like find or fd, without reading any file.

GET
/namespaces/{namespace}/branches/{branch}/find

A glob without / matches a name at any depth (*.ts); with one it matches the whole path (src/**/*.test.ts). * and ? stay within one folder, ** crosses any number.

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

namespace*string

A namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.

branch*string

A branch, such as main or agents/fix-1. Encode / as %2F.

Query Parameters

glob*string
Length1 <= length <= 1000
path?string

Find only under this folder.

Lengthlength <= 4096
Default""
kind?string

files (with symlinks), folders, or any by default.

Value in"any""files""folders"
at?string

Read an older commit of the branch instead of its head.

Match^[0-9a-f]{64}$
limit?|

The most paths to return. 1,000 by default, at most 100,000.

Response Body

The paths, in name order.

application/json
  1. response
[index: integer]?
Example Request
curl -X GET 'https://example.com/v1/namespaces/string/branches/string/find?glob=string'
Example Response
[  {    "path": "string",    "kind": "file",    "size": 0  }]