kedro/framework/cli/cli.py
def _assert_output_dir_ok(output_dir: str):
    """Check that output directory exists.

    Args:
        output_dir: Output directory path.

    Raises:
        KedroCliError: If the output directory does not exist.

    """
    if not os.path.exists(output_dir):
        message = (
            "`{}` is not a valid output directory. "
            "It must be a relative or absolute path "
            "to an existing directory.".format(output_dir)
        )
        raise KedroCliError(message)
Check that output directory exists.

    Args:
        output_dir: Output directory path.

    Raises:
        KedroCliError: If the output directory does not exist.

    
Check that output directory exists.
Check that output directory exists .
def _assert_output_dir_ok(output_dir: str):
    if not os.path.exists(output_dir):
        message = (
            "`{}` is not a valid output directory. "
            "It must be a relative or absolute path "
            "to an existing directory.".format(output_dir)
        )
        raise KedroCliError(message)
def _assert_output_dir_ok ( output_dir : str ) : if not os . path . exists ( output_dir ) : message = ( "`{}` is not a valid output directory. " "It must be a relative or absolute path " "to an existing directory." . format ( output_dir ) ) raise KedroCliError ( message )
Check that output directory exists.
Check that output directory exists .
"""Check that output directory exists.

    Args:
        output_dir: Output directory path.

    Raises:
        KedroCliError: If the output directory does not exist.

    """
If the output directory does not exist.
If the output directory does not exist .
KedroCliError
output_dir
str
Output directory path.
Output directory path .