diff --git a/README.md b/README.md index 4bb0cb1..2f19812 100644 --- a/README.md +++ b/README.md @@ -1589,19 +1589,19 @@ Command Execution ```python import os -os.chdir() # Changes the current working directory. - = os.getcwd() # Returns current working directory. +os.chdir() # Changes the current working directory. + = os.getcwd() # Returns current working directory. ``` ```python -os.remove() # Deletes the file. -os.rmdir() # Deletes empty directory. -shutil.rmtree() # Deletes an entire directory tree. +os.remove() # Deletes the file. +os.rmdir() # Deletes empty directory. +shutil.rmtree() # Deletes an entire directory tree. ``` ```python -os.rename(from, to) # Renames the file or directory. -os.replace(from, to) # Same, but overwrites 'to' if it exists. +os.rename(from, to) # Renames the file or directory. +os.replace(from, to) # Same, but overwrites 'to' if it exists. ``` ```python diff --git a/index.html b/index.html index 858ac68..57e9481 100644 --- a/index.html +++ b/index.html @@ -1431,15 +1431,15 @@ value = args.<name>
  • All exceptions are either 'OSError' or its subclasses.
  • import os
    -os.chdir(<path>)       # Changes the current working directory.
    -<str> = os.getcwd()    # Returns current working directory.
    +os.chdir(<path>)               # Changes the current working directory.
    +<str> = os.getcwd()            # Returns current working directory.
     
    -
    os.remove(<path>)      # Deletes the file.
    -os.rmdir(<path>)       # Deletes empty directory.
    -shutil.rmtree(<path>)  # Deletes an entire directory tree.
    +
    os.remove(<path>)              # Deletes the file.
    +os.rmdir(<path>)               # Deletes empty directory.
    +shutil.rmtree(<path>)          # Deletes an entire directory tree.
     
    -
    os.rename(from, to)    # Renames the file or directory.
    -os.replace(from, to)   # Same, but overwrites 'to' if it exists.
    +
    os.rename(from, to)            # Renames the file or directory.
    +os.replace(from, to)           # Same, but overwrites 'to' if it exists.
     
    os.mkdir(<path>, mode=0o777)   # Creates a directory.
     <iter> = os.scandir(path='.')  # Returns os.DirEntry objects located at path.