Browse Source

OS Commands

pull/135/head
Jure Šorn 2 years ago
parent
commit
4cfa709f76
2 changed files with 2 additions and 2 deletions
  1. 2
      README.md
  2. 2
      index.html

2
README.md

@ -1708,7 +1708,7 @@ import os, shutil, subprocess
```python
os.chdir(<path>) # Changes the current working directory.
os.mkdir(<path>, mode=0o777) # Creates a directory. Mode is in octal.
os.makedirs(<path>, mode=0o777) # Creates dirs in path. Also: `exist_ok=False`.
os.makedirs(<path>, mode=0o777) # Creates all path's dirs. Also: `exist_ok=False`.
```
```python

2
index.html

@ -1440,7 +1440,7 @@ value = args.&lt;name&gt;
<li><strong>Functions report OS related errors by raising either OSError or one of its <a href="#exceptions-1">subclasses</a>.</strong></li>
</ul><pre><code class="python language-python hljs">os.chdir(&lt;path&gt;) <span class="hljs-comment"># Changes the current working directory.</span>
os.mkdir(&lt;path&gt;, mode=<span class="hljs-number">0o777</span>) <span class="hljs-comment"># Creates a directory. Mode is in octal.</span>
os.makedirs(&lt;path&gt;, mode=<span class="hljs-number">0o777</span>) <span class="hljs-comment"># Creates dirs in path. Also: `exist_ok=False`.</span>
os.makedirs(&lt;path&gt;, mode=<span class="hljs-number">0o777</span>) <span class="hljs-comment"># Creates all path's dirs. Also: `exist_ok=False`.</span>
</code></pre></div>

Loading…
Cancel
Save