BazelCon 2022 is coming November 16-17 to New York and online.
Register today!


Stay organized with collections Save and categorize content based on your preferences.
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.