model_analyzer/config/input/config_utils.py
def parent_path_validator(path):
    """
    Perform a check on parent directory. Used when the file at
    'path' can be created by Model Analyzer in order to validate
    the parent directory of the file.

    Parameters
    ----------
    path: str
        Absolute path to a file or directory

    Returns
    -------
    ConfigStatus
    """

    abspath = os.path.abspath(path)

    if os.path.exists(os.path.dirname(abspath)):
        return ConfigStatus(status=CONFIG_PARSER_SUCCESS)
    else:
        return ConfigStatus(
            status=CONFIG_PARSER_FAILURE,
            message=
            f"Either the parent directory for '{path}' does not exist, or Model Analyzer "
            "does not have permissions to execute os.stat on this path.")

    Perform a check on parent directory. Used when the file at
    'path' can be created by Model Analyzer in order to validate
    the parent directory of the file.

    Parameters
    ----------
    path: str
        Absolute path to a file or directory

    Returns
    -------
    ConfigStatus
    
Perform a check on parent directory. Used when the file at
'path' can be created by Model Analyzer in order to validate
the parent directory of the file.

Parameters

str
Absolute path to a file or directory

Returns


Perform a check on parent directory . Used when the file at ' path ' can be created by Model Analyzer in order to validate the parent directory of the file . Parameters str Absolute path to a file or directory Returns
def parent_path_validator(path):
    abspath = os.path.abspath(path)
    if os.path.exists(os.path.dirname(abspath)):
        return ConfigStatus(status=CONFIG_PARSER_SUCCESS)
    else:
        return ConfigStatus(
            status=CONFIG_PARSER_FAILURE,
            message=
            f"Either the parent directory for '{path}' does not exist, or Model Analyzer "
            "does not have permissions to execute os.stat on this path.")
def parent_path_validator ( path ) : abspath = os . path . abspath ( path ) if os . path . exists ( os . path . dirname ( abspath ) ) : return ConfigStatus ( status = CONFIG_PARSER_SUCCESS ) else : return ConfigStatus ( status = CONFIG_PARSER_FAILURE , message = f"Either the parent directory for '{path}' does not exist, or Model Analyzer " "does not have permissions to execute os.stat on this path." )
Perform a check on parent directory.
Perform a check on parent directory .
"""
    Perform a check on parent directory. Used when the file at
    'path' can be created by Model Analyzer in order to validate
    the parent directory of the file.

    Parameters
    ----------
    path: str
        Absolute path to a file or directory

    Returns
    -------
    ConfigStatus
    """
path