from typing import Any


def is_directory_structure_to_be_ignored(**kwargs: Any) -> bool:
    """Returns whether the directory structure within an archive shall be
       ignored

    Parameters
    ----------
    **kwargs
        ignoreDirectoryStructure: bool
            flag indicating whether the directory structure within the archive shall
            be ignored (i.e., files are extracted to the target directory without
            creating subdirectories)

    Returns
    -------
    bool
        true, if the directory structure within an archive shall be ignored
    """

    return ("ignoreDirectoryStructure" in kwargs) and (kwargs["ignoreDirectoryStructure"])