##### SUMMARY
```
(ansible_base) [vagrant@centos8 ~]$ ansible-test --version
ERROR: The current working directory must be at or below:

 - an Ansible collection: {...}/ansible_collections/{namespace}/{collection}/

Current working directory: /home/vagrant
```

##### ISSUE TYPE
- Feature Idea

##### COMPONENT NAME
ansible-test

"""Code for finding content."""
from __future__ import annotations
import abc
import collections
import os
import typing as t
from ...util import (
    ANSIBLE_SOURCE_ROOT,
)
from .. import (
    PathProvider,
)
class Layout:
    """Description of content locations and helper methods to access content."""
    def __init__(self,
                 root,  
                 paths,  
                 ):  
        self.root = root
        self.__paths = paths  
        self.__files = [path for path in paths if not path.endswith(os.path.sep)]  
        self.__paths_tree = paths_to_tree(self.__paths)
        self.__files_tree = paths_to_tree(self.__files)
    def all_files(self, include_symlinked_directories=False):  
        """Return a list of all file paths."""
        if include_symlinked_directories:
            return self.__paths
        return self.__files
    def walk_files(self, directory, include_symlinked_directories=False):