|
|
@ -1450,7 +1450,7 @@ os.rmdir(<path>) <span class="hljs-comment"># Deletes t |
|
|
|
shutil.rmtree(<path>) <span class="hljs-comment"># Deletes the directory.</span> |
|
|
|
</code></pre> |
|
|
|
<ul> |
|
|
|
<li><strong>Paths can be either strings, Paths or DirEntry objects.</strong></li> |
|
|
|
<li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li> |
|
|
|
<li><strong>Functions report OS related errors by raising either OSError or one of its <a href="#exceptions-1">subclasses</a>.</strong></li> |
|
|
|
</ul> |
|
|
|
<div><h3 id="shellcommands">Shell Commands</h3><pre><code class="python language-python hljs"><pipe> = os.popen(<span class="hljs-string">'<command>'</span>) <span class="hljs-comment"># Executes command in sh/cmd. Returns its stdout pipe.</span> |
|
|
|