Browse Source

Command Execution

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

2
README.md

@ -1604,7 +1604,7 @@ Command Execution
----------------- -----------------
### Files and Directories ### Files and Directories
* **Paths can be either strings, Paths, or DirEntry objects.** * **Paths can be either strings, Paths, or DirEntry objects.**
* **All functions can raise either OSError or its subclasses.**
* **Functions report OS related errors by raising either OSError or one of its subclasses.**
```python ```python
import os, shutil import os, shutil

2
index.html

@ -1457,7 +1457,7 @@ value = args.<name>
</code></pre> </code></pre>
<div><h2 id="commandexecution"><a href="#commandexecution" name="commandexecution">#</a>Command Execution</h2><div><h3 id="filesanddirectories">Files and Directories</h3><ul> <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> <li><strong>Paths can be either strings, Paths, or DirEntry objects.</strong></li>
<li><strong>All functions can raise either OSError or its subclasses.</strong></li>
<li><strong>Functions report OS related errors by raising either OSError or one of its subclasses.</strong></li>
</ul><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os, shutil </ul><pre><code class="python language-python hljs"><span class="hljs-keyword">import</span> os, shutil
&lt;str&gt; = os.getcwd() <span class="hljs-comment"># Returns the current working directory.</span> &lt;str&gt; = os.getcwd() <span class="hljs-comment"># Returns the current working directory.</span>
os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes current working directory.</span> os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes current working directory.</span>

Loading…
Cancel
Save