(path: str)
Recursively deletes a directory. Includes an error handler to retry with
    different permissions on Windows. Otherwise, removing directories (eg.
    cloned via git) can cause rmtree to throw a PermissionError exception
Recursively deletes a directory. Includes an error handler to retry with
    different permissions on Windows. Otherwise, removing directories (eg.
    cloned via git) can cause rmtree to throw a PermissionError exception
Recursively deletes a directory . Includes an error handler to retry with different permissions on Windows . Otherwise removing directories ( eg . cloned via git ) can cause rmtree to throw a PermissionError exception
def rmdir(path: str) -> None:
    """
    Recursively deletes a directory. Includes an error handler to retry with
    different permissions on Windows. Otherwise, removing directories (eg.
    cloned via git) can cause rmtree to throw a PermissionError exception
    """
    path = convert_path(path)
    if sys.platform == 'win32':
        onerror = _windows_rmdir_readonly
    else:
        onerror = None

    shutil.rmtree(path, onerror=onerror)
def rmdir ( path : str ) -> None : path = convert_path ( path ) if sys . platform == 'win32' : onerror = _windows_rmdir_readonly else : onerror = None shutil . rmtree ( path , onerror = onerror )