from pathlib import Path


def list_relative_file_paths(path: str = '.', recursive: bool = True):
    """Returns a list of relative file paths to all files in a given directory"""
    if recursive:
        path_gen = Path(path).glob("**/*")
    else:
        path_gen = Path(path).glob("*")

    paths = [f"{i.parent}/{i.name}" for i in path_gen if i.is_file()]
    return paths