|
|
@ -1428,7 +1428,7 @@ p.add_argument(<span class="hljs-string">'<name>'</span>, type=<type> |
|
|
|
<iter> = <Path>.glob(<span class="hljs-string">'<pattern>'</span>) <span class="hljs-comment"># Returns Paths matching the wildcard pattern.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><str> = str(<Path>) <span class="hljs-comment"># Returns path as a string.</span> |
|
|
|
<file> = open(<Path>) <span class="hljs-comment"># Also <Path>.read/write_text/bytes().</span> |
|
|
|
<file> = open(<Path>) <span class="hljs-comment"># Also <Path>.read/write_text/bytes(<args>).</span> |
|
|
|
</code></pre> |
|
|
|
<div><h2 id="oscommands"><a href="#oscommands" name="oscommands">#</a>OS Commands</h2><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os, shutil, subprocess |
|
|
|
</code></pre></div> |
|
|
|