def get_reader_full_path(reader: BaseReader, reader_type: str, **kwargs) -> str:
    """
    Return absolute source path of source of reader based on the
    keys present in Document object from reader.

    Args:
        reader (BaseReader): Llama document reader, derived from Baseloader.

    """
    location = "-"
    if not isinstance(reader, BaseReader):
        logger.error(
            "loader is not derived from BaseReader, source location will be unknown!"
        )
        return location
    loader_dict = reader.__dict__
    try:
        if reader_type == "SimpleDirectoryReader":
            if loader_dict.get("input_dir", None):
                location = loader_dict.get("input_dir")
        elif kwargs.get("file"):
            location = kwargs.get("file")
        elif kwargs.get("input_file"):
            location = kwargs.get("input_file")
    except Exception:
        pass
    return get_full_path(str(location))

    Return absolute source path of source of reader based on the
    keys present in Document object from reader.

    Args:
        reader (BaseReader): Llama document reader, derived from Baseloader.

    
llama-index-integrations/readers/llama-index-readers-pebblo/llama_index/readers/pebblo/utility.py