docs/versions/8.4.0/rules/lib/builtins/root.mdx
{% dynamic setvar source_file "src/main/java/com/google/devtools/build/lib/starlarkbuildapi/FileRootApi.java" %} {% dynamic setvar version "8.4.0" %} {% dynamic setvar original_path "/rules/lib/builtins/root" %} {% include "_buttons.html" %}
<!-- {% raw %} -->A root for files. The roots are the directories containing files, and they are mapped together into a single directory tree to form the execution environment.
<h2>Members</h2> <ul> <li> <a href="#path">path</a> </li> </ul> <h2 id="path">path</h2>
<p><pre class="rule-signature"><a class="anchor" href="../core/string.html">string</a> root.path</pre></p>
Returns the relative path from the exec root to the actual root.