From 1ef3457a4ccc0bd093ed793b6cd4982f739c0a67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Wed, 7 Aug 2019 05:47:17 +0200 Subject: [PATCH] Command execution --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a8447e0..a70316a 100644 --- a/README.md +++ b/README.md @@ -1604,7 +1604,7 @@ Command Execution ----------------- ### Files and Directories * **Paths can be either strings, Paths, or DirEntry objects.** -* **All exceptions are either OSError or its subclasses.** +* **All functions can raise either OSError or its subclasses.** ```python import os, shutil diff --git a/index.html b/index.html index 8d06878..8115e37 100644 --- a/index.html +++ b/index.html @@ -1457,7 +1457,7 @@ value = args.<name>

#Command Execution

Files and Directories

  • Paths can be either strings, Paths, or DirEntry objects.
  • -
  • All exceptions are either OSError or its subclasses.
  • +
  • All functions can raise either OSError or its subclasses.
import os, shutil
 <str> = os.getcwd()                # Returns the current working directory.
 os.chdir(<path>)                   # Changes current working directory.