/span>

<span class="sd">    if shuffle_index_directory is None:</span>
<span class="sd">        then sort the filenames alphabetically and save to the list file:</span>
<span class="sd">        &lt;base_directory&gt;/.index/&lt;search_class&gt;.txt</span>
<span class="sd">    else:</span>
<span class="sd">        then randomly shuffle the files and save to the list file:</span>
<span class="sd">        &lt;shuffle_index_directory&gt;/.index/&lt;search_class&gt;.txt</span>

<span class="sd">    Args:</span>