|
|
@ -1490,7 +1490,7 @@ value = args.<name> |
|
|
|
|
|
|
|
|
|
|
|
<pre><code class="python language-python hljs">os.chdir(<path>) <span class="hljs-comment"># Changes current working directory.</span> |
|
|
|
os.mkdir(<path>, mode=<span class="hljs-number">0o777</span>) <span class="hljs-comment"># Creates a directory.</span> |
|
|
|
os.mkdir(<path>, mode=<span class="hljs-number">0o777</span>) <span class="hljs-comment"># Creates a directory. Mode is in octal.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs">shutil.copy(from, to) <span class="hljs-comment"># Copies the file.</span> |
|
|
|
shutil.copytree(from, to) <span class="hljs-comment"># Copies the entire directory tree.</span> |
|
|
|