(
    paths: List[str],
    exclusion_regexes: Set[re.Pattern],
    recursive: bool,
    yes: bool,
    verbose: bool,
    ignore_git: bool = False,
)
return Files(files)
Create a scan object from files content.

    :param paths: List of file/dir paths from the command
    :param paths_ignore: List of file/dir paths to ignore (glob pattern)
    :param recursive: Recursive option
    :param yes: Skip confirmation option
    :param verbose: Option that displays filepaths as they are scanned
    :param ignore_git: Ignore that the folder is a git repository
Create a scan object from files content.
Create a scan object from files content .
def get_files_from_paths(
    paths: List[str],
    exclusion_regexes: Set[re.Pattern],
    recursive: bool,
    yes: bool,
    verbose: bool,
    ignore_git: bool = False,
) -> Files:
    """
    Create a scan object from files content.

    :param paths: List of file/dir paths from the command
    :param paths_ignore: List of file/dir paths to ignore (glob pattern)
    :param recursive: Recursive option
    :param yes: Skip confirmation option
    :param verbose: Option that displays filepaths as they are scanned
    :param ignore_git: Ignore that the folder is a git repository
    """
    filepaths = get_filepaths(
        paths, exclusion_regexes, recursive, ignore_git=ignore_git
    )
    files = list(generate_files_from_paths(filepaths, verbose))

    if verbose:
        for f in files:
            click.echo(f"- {click.format_filename(f.filename)}")

    size = len(files)
    if size > 1 and not yes:
        click.confirm(
            f"{size} files will be scanned. Do you want to continue?", abort=True
        )

    return Files(files)
def get_files_from_paths ( paths : List [ str ] , exclusion_regexes : Set [ re . Pattern ] , recursive : bool , yes : bool , verbose : bool , ignore_git : bool = False , ) -> Files : filepaths = get_filepaths ( paths , exclusion_regexes , recursive , ignore_git = ignore_git ) files = list ( generate_files_from_paths ( filepaths , verbose ) ) if verbose : for f in files : click . echo ( f"- {click.format_filename(f.filename)}" ) size = len ( files ) if size > 1 and not yes : click . confirm ( f"{size} files will be scanned. Do you want to continue?" , abort = True ) return Files ( files )