Browse Source

DirEntry

pull/38/merge
Jure Šorn 5 years ago
parent
commit
90ec02efa3
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1622,7 +1622,7 @@ os.mkdir(<path>, mode=0o777) # Creates a directory.
```python
<str> = <DirEntry>.name # Final component of the path.
<str> = <DirEntry>.path # Path with final component.
<Path> = Path(<DirEntry>) # Path as Path object.
<Path> = Path(<DirEntry>) # Path object.
```
```python

2
index.html

@ -1454,7 +1454,7 @@ os.replace(<span class="hljs-keyword">from</span>, to) <span class=
<h4 id="direntry">DirEntry:</h4>
<pre><code class="python language-python hljs">&lt;str&gt; = &lt;DirEntry&gt;.name <span class="hljs-comment"># Final component of the path.</span>
&lt;str&gt; = &lt;DirEntry&gt;.path <span class="hljs-comment"># Path with final component.</span>
&lt;Path&gt; = Path(&lt;DirEntry&gt;) <span class="hljs-comment"># Path as Path object.</span>
&lt;Path&gt; = Path(&lt;DirEntry&gt;) <span class="hljs-comment"># Path object.</span>
</code></pre>
<pre><code class="python language-python hljs">&lt;bool&gt; = &lt;DirEntry&gt;.is_file()
&lt;bool&gt; = &lt;DirEntry&gt;.is_dir()

Loading…
Cancel
Save