更新文件列表
<h3>更新命令格式:</h3>
<pre><code class="language-text">python /root/PyOne/function.py UpdateFile [可选:更新方式] [可选:网盘选择]</code></pre>
<p>两个可选的参数:</p>
<ol>
<li><strong>更新方式</strong>:可选"new"、"all",new代表增量更新,all代表全量更新。默认是all</li>
<li><strong>网盘选择</strong>:默认全部网盘一起更新。如果更新特定网盘,则改为对应网盘的<strong>盘符</strong>。</li>
</ol>
<h3>示例</h3>
<h4>全部网盘全量更新(默认)</h4>
<p>即全量更新文件目录。推荐在<strong>文件目录结构发生变化</strong>的情况下才进行本操作。</p>
<p><strong>命令(确保目录正确):</strong></p>
<pre><code class="language-text">python /root/PyOne/function.py UpdateFile</code></pre>
<h4>全部网盘增量更新</h4>
<p>即只有当文件夹大小发生变化时才进行更新操作。推荐在文<strong>件目录结构没有发生变化</strong>的情况下进行操作。</p>
<p><strong>命令(确保目录正确):</strong></p>
<pre><code class="language-text">python /root/PyOne/function.py UpdateFile new</code></pre>
<h4>网盘A全量更新</h4>
<pre><code class="language-text">python /root/PyOne/function.py UpdateFile all A</code></pre>
<h4>网盘A增量更新</h4>
<pre><code class="language-text">python /root/PyOne/function.py UpdateFile new A</code></pre>