Save the Date: BazelCon 2023 will be held October 24-25 at Google Munich! Registration is now open! Learn more


Report an issue View source

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



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.


Parameter Description
file required
The directory or file to expand.