Browse Source

Pathlib

pull/42/head
Jure Šorn 5 years ago
parent
commit
6db54c3b87
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1596,7 +1596,7 @@ cwd = Path()
```python
<Path> = <Path>.resolve() # Returns absolute path without symlinks.
<Path> = <Path>.parent # Returns path without final component.
<file> = open(<Path>) # Opens a file and returns file object.
<file> = open(<Path>) # Opens the file and returns a file object.
```

2
index.html

@ -1453,7 +1453,7 @@ value = args.&lt;name&gt;
</code></pre>
<pre><code class="python language-python hljs">&lt;Path&gt; = &lt;Path&gt;.resolve() <span class="hljs-comment"># Returns absolute path without symlinks.</span>
&lt;Path&gt; = &lt;Path&gt;.parent <span class="hljs-comment"># Returns path without final component.</span>
&lt;file&gt; = open(&lt;Path&gt;) <span class="hljs-comment"># Opens a file and returns file object.</span>
&lt;file&gt; = open(&lt;Path&gt;) <span class="hljs-comment"># Opens the file and returns a file object.</span>
</code></pre>
<div><h2 id="commandexecution"><a href="#commandexecution" name="commandexecution">#</a>Command Execution</h2><div><h3 id="filesanddirectories">Files and Directories</h3><ul>
<li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li>

Loading…
Cancel
Save