File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1631,7 +1631,7 @@ import os, shutil
1631
1631
1632
1632
``` python
1633
1633
os.chdir(< path> ) # Changes current working directory.
1634
- os.mkdir(< path> , mode = 0o 777 ) # Creates a directory.
1634
+ os.mkdir(< path> , mode = 0o 777 ) # Creates a directory. Mode is in octal.
1635
1635
```
1636
1636
1637
1637
``` python
Original file line number Diff line number Diff line change 1490
1490
1491
1491
1492
1492
< pre > < code class ="python language-python hljs "> os.chdir(<path>) < span class ="hljs-comment "> # Changes current working directory.</ span >
1493
- os.mkdir(<path>, mode=< span class ="hljs-number "> 0o777</ span > ) < span class ="hljs-comment "> # Creates a directory.</ span >
1493
+ os.mkdir(<path>, mode=< span class ="hljs-number "> 0o777</ span > ) < span class ="hljs-comment "> # Creates a directory. Mode is in octal. </ span >
1494
1494
</ code > </ pre >
1495
1495
< pre > < code class ="python language-python hljs "> shutil.copy(from, to) < span class ="hljs-comment "> # Copies the file.</ span >
1496
1496
shutil.copytree(from, to) < span class ="hljs-comment "> # Copies the entire directory tree.</ span >
You can’t perform that action at this time.
0 commit comments