r.gz contains the same directory structure as the src_dir.</span>

<span class="sd">    Args:</span>
<span class="sd">        src_dir: Path to directory to generated .tar.gz archive</span>
<span class="sd">        dst_archive: Path to generated .tar.gz. If omitted then use src_dir + .tar.gz</span>
<span class="sd">        regex: Optional regex of file paths to INCLUDE in the returned list</span>
<span class="sd">            This can either be a string, re.Pattern, or a callback function</span>
<span class="