diff --git a/README.md b/README.md index 636f6ef..261c56b 100644 --- a/README.md +++ b/README.md @@ -1590,7 +1590,7 @@ from glob import glob ``` ```python - = getcwd() # Returns current working directory. + = getcwd() # Returns the current working directory. = path.join(, ...) # Joins two or more pathname components. = path.abspath() # Returns absolute path. ``` @@ -1664,7 +1664,7 @@ from pathlib import Path OS Commands ----------- ### Files and Directories -* **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).** ```python @@ -1672,7 +1672,7 @@ import os, shutil ``` ```python -os.chdir() # Changes current working directory. +os.chdir() # Changes the current working directory. os.mkdir(, mode=0o777) # Creates a directory. Mode is in octal. ``` diff --git a/index.html b/index.html index d4e4b11..dde30d8 100644 --- a/index.html +++ b/index.html @@ -1470,7 +1470,7 @@ value = args.<name> from glob import glob -
<str>  = getcwd()                   # Returns current working directory.
+
<str>  = getcwd()                   # Returns the current working directory.
 <str>  = path.join(<path>, ...)     # Joins two or more pathname components.
 <str>  = path.abspath(<path>)       # Returns absolute path.
 
@@ -1517,14 +1517,14 @@ value = args.<name> <file> = open(<Path>) # Opens the file and returns file object.

#OS Commands

Files and Directories

    -
  • 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.
import os, shutil
 
-
os.chdir(<path>)                    # Changes current working directory.
+
os.chdir(<path>)                    # Changes the current working directory.
 os.mkdir(<path>, mode=0o777)        # Creates a directory. Mode is in octal.
 
shutil.copy(from, to)               # Copies the file. 'to' can be a directory.