From de70acb07839526425a9e0ec8a441c79fa6ab397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 13 Sep 2024 13:05:30 +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 b4c076b..4e3cb01 100644 --- a/README.md +++ b/README.md @@ -1731,7 +1731,7 @@ os.remove() # Deletes the file. os.rmdir() # Deletes the empty directory. shutil.rmtree() # Deletes the directory. ``` -* **Paths can be either strings, Paths or DirEntry objects.** +* **Paths can be either strings, Paths, or DirEntry objects.** * **Functions report OS related errors by raising either OSError or one of its [subclasses](#exceptions-1).** ### Shell Commands diff --git a/index.html b/index.html index a2e11ae..53a5151 100644 --- a/index.html +++ b/index.html @@ -1450,7 +1450,7 @@ os.rmdir(<path>) # Deletes t shutil.rmtree(<path>) # Deletes the directory.
    -
  • Paths can be either strings, Paths or DirEntry objects.
  • +
  • Paths can be either strings, Paths, or DirEntry objects.
  • Functions report OS related errors by raising either OSError or one of its subclasses.

Shell Commands

<pipe> = os.popen('<command>')      # Executes command in sh/cmd. Returns its stdout pipe.