overlay

Accessor

ArgDescriptionType
pathsA list of paths to try to resolve each path.list of OSPath (required)
accessorFile accessorstring

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 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")