|
|
@ -1445,11 +1445,12 @@ os.replace(<span class="hljs-keyword">from</span>, to) <span class="hl |
|
|
|
<iter> = os.scandir(path=<span class="hljs-string">'.'</span>) <span class="hljs-comment"># Returns os.DirEntry objects located at path.</span> |
|
|
|
</code></pre> |
|
|
|
<h4 id="direntry">DirEntry:</h4> |
|
|
|
<pre><code class="pyton language-pyton python"><str> = <DirEntry>.name |
|
|
|
<str> = <DirEntry>.path |
|
|
|
<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> |
|
|
|
<bool> = <DirEntry>.is_file() |
|
|
|
<bool> = <DirEntry>.is_dir() |
|
|
|
<bool> = <DirEntry>.is_symlink() |
|
|
|
<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 |
|
|
|