From 1c5998b48b9a70f11a972dcb1ac64e8a11a5b836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 23 Jul 2019 22:14:37 +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 a2e281c..a667616 100644 --- a/README.md +++ b/README.md @@ -1593,7 +1593,7 @@ cwd = Path() Command Execution ----------------- ### Files and Directories -* **Paths can be either strings or Path objects.** +* **Paths can be either strings, Paths or DirEntry objects.** * **All exceptions are either 'OSError' or its subclasses.** ```python diff --git a/index.html b/index.html index 6b373e9..eb8bcb0 100644 --- a/index.html +++ b/index.html @@ -1444,7 +1444,7 @@ value = args.<name> <file> = open(<Path>) # Opens a file and returns file object.

#Command Execution

Files and Directories

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