IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/DirectoryExpander

You can read about the migration, and let us know what you think.

Extensions > API reference > DirectoryExpander

DirectoryExpander

Expands directories created by ctx.actions.declare_directory during the execution phase. This is useful to expand directories in map_each.

Members

expand

list DirectoryExpander.expand(file)

If the given File is a directory, this returns a list of Files recursively underneath the directory. Otherwise, this returns a list containing just the given File itself.

Parameters

Parameter Description
file required
The directory or file to expand.
OSZAR »