Skip to main content
Find files by name, by contents, or both. Use glob to choose files and pattern to match their contents.

Parameters

Response

How a search matches

  • Literal by default. Without regex, the pattern is matched as plain text, so a.b does not match axb and no escaping is required for user supplied input.
  • Binary files are skipped. A file whose first 8 KiB contains a NUL byte, or which is not valid UTF-8, is not searched.
  • Large files are skipped. Files above 8 MiB are excluded, keeping a search over a build tree bounded.
  • Directory symlinks are not followed, so a link cannot point the search outside path.
  • The walk is bounded. It stops at 200000 files, and a regular expression is size-limited.
  • Glob matching applies to the name and the full path. *.py matches app.py at any depth; src/*.py matches by relative path.

Endpoint

POST /v1/agents/runtime/{runtime_id}/files/find