From bb50ec1b8c1bc2891e4f2aebdbd9609879e0a475 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 10 Aug 2019 03:14:43 +0200 Subject: [PATCH] Command execution --- README.md | 2 +- index.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b9db1ef..c2094ca 100644 --- a/README.md +++ b/README.md @@ -1605,7 +1605,7 @@ Command Execution ----------------- ### Files and Directories * **Paths can be either strings, Paths, or DirEntry objects.** -* **Functions report OS related errors by raising either OSError or one of its subclasses.** +* **Functions report [OS related errors](#exceptions-1) by raising either OSError or one of its subclasses.** ```python import os, shutil diff --git a/index.html b/index.html index 067a49d..19a94e3 100644 --- a/index.html +++ b/index.html @@ -668,7 +668,7 @@ shuffle(<list>) <Ta/DTa> = <T/DT>.replace(tzinfo=<tzinfo>) # Unconverted object with new timezone.

Encode

<D/T/DT> = D/T/DT.fromisoformat('<iso>')    # Object from ISO string. Raises ValueError.
-<DT>     = DT.strptime(<str>, '<format>')   # Datetime from str, according to format. 
+<DT>     = DT.strptime(<str>, '<format>')   # Datetime from str, according to format.
 <D/DTn>  = D/DT.fromordinal(<int>)          # D/DTn from days since Christ, at midnight.
 <DTn>    = DT.fromtimestamp(<real>)         # Local time DTn from seconds since Epoch.
 <DTa>    = DT.fromtimestamp(<real>, <tz.>)  # Aware datetime from seconds since Epoch.
@@ -1458,7 +1458,7 @@ value = args.<name>
 

#Command Execution

Files and Directories

  • Paths can be either strings, Paths, or DirEntry objects.
  • -
  • Functions report OS related errors by raising either OSError or one of its subclasses.
  • +
  • Functions report OS related errors by raising either OSError or one of its subclasses.
import os, shutil
 <str> = os.getcwd()                # Returns the current working directory.
 os.chdir(<path>)                   # Changes current working directory.