From 4cfa709f76939d4c1ed4e22a9c266bf9a431487b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 11 Jun 2022 01:57:12 +0200 Subject: [PATCH] OS Commands --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7869e0d..c53c48c 100644 --- a/README.md +++ b/README.md @@ -1708,7 +1708,7 @@ import os, shutil, subprocess ```python os.chdir() # Changes the current working directory. os.mkdir(, mode=0o777) # Creates a directory. Mode is in octal. -os.makedirs(, mode=0o777) # Creates dirs in path. Also: `exist_ok=False`. +os.makedirs(, mode=0o777) # Creates all path's dirs. Also: `exist_ok=False`. ``` ```python diff --git a/index.html b/index.html index 05fe4ed..c15930c 100644 --- a/index.html +++ b/index.html @@ -1440,7 +1440,7 @@ value = args.<name>
  • Functions report OS related errors by raising either OSError or one of its subclasses.
  • 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`.