Browse Source

Paths

pull/135/head
Jure Šorn 2 years ago
parent
commit
8b30371e38
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1691,7 +1691,7 @@ from pathlib import Path
```python
<str> = str(<Path>) # Returns path as a string.
<file> = open(<Path>) # Opens the file and returns a file object.
<file> = open(<Path>) # Also <Path>.read/write_text/bytes().
```

2
index.html

@ -1430,7 +1430,7 @@ value = args.&lt;name&gt;
&lt;iter&gt; = &lt;Path&gt;.glob(<span class="hljs-string">'&lt;pattern&gt;'</span>) <span class="hljs-comment"># Returns Paths matching the wildcard pattern.</span>
</code></pre>
<pre><code class="python language-python hljs">&lt;str&gt; = str(&lt;Path&gt;) <span class="hljs-comment"># Returns path as a string.</span>
&lt;file&gt; = open(&lt;Path&gt;) <span class="hljs-comment"># Opens the file and returns a file object.</span>
&lt;file&gt; = open(&lt;Path&gt;) <span class="hljs-comment"># Also &lt;Path&gt;.read/write_text/bytes().</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>

Loading…
Cancel
Save