|
|
@ -1454,11 +1454,11 @@ os.replace(<span class="hljs-keyword">from</span>, to) <span class= |
|
|
|
<h4 id="direntry">DirEntry:</h4> |
|
|
|
<pre><code class="python language-python hljs"><str> = <DirEntry>.name <span class="hljs-comment"># Final component of the path.</span> |
|
|
|
<str> = <DirEntry>.path <span class="hljs-comment"># Path with final component.</span> |
|
|
|
<Path> = Path(<DirEntry>) <span class="hljs-comment"># Path as Path object.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><bool> = <DirEntry>.is_file() |
|
|
|
<bool> = <DirEntry>.is_dir() |
|
|
|
<bool> = <DirEntry>.is_symlink() |
|
|
|
<Path> = Path(<DirEntry>) |
|
|
|
</code></pre> |
|
|
|
<h3 id="shellcommands">Shell Commands</h3> |
|
|
|
<pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os |
|
|
|