from typing import List
from pathlib import Path


def get_core_paths(root: str) -> List[str]:
    """Return all the files/directories that are part of core package.

    In practice, it just excludes the directories in env module"""
    paths = []
    for _path in Path(root).iterdir():
        if _path.stem == "envs":
            for _env_path in _path.iterdir():
                if _env_path.is_file():
                    paths.append(str(_env_path))
        else:
            paths.append(str(_path))
    return paths