Skip to content
Please update to the latest release 0.77.2 to address Multiple CVEs.

overlay

Accessor
Arg Description Type
paths A list of paths to try to resolve. list of OSPath (required)
accessor File accessor string

Description

Merges several paths into a single path.

This accessor allows an overlay of several other paths as possible prefixes. For example consider the following base paths:

  • /bin/
  • /usr/bin/

Then when attempting to open the file “ls”, this accessor first searches for it in /bin/ls, then /usr/bin/ls.

The search paths are selected using a scope variable:

LET OVERLAY_ACCESSOR_DELEGATES <= dict(
   accessor="file",
   paths=["/bin", "/usr/bin"])

SELECT * FROM glob(globs='*', accessor="overlay")