import re


def fn_detect(lines):
    """
    Extracts file paths from code files using a file path regex.
    For a file of n lines, return a n length list of:
        * boolean: False (no path detected)
        * str: Detected file path
    """

    fn_positions = []

    exp = r"(?:'|\")(.*?\/.*?\.[\w:]+.*)(?:'|\")"

    for line in lines:
        match = re.search(exp, line)

        if match:
            fn_positions.append(match.group(1))
        else:
            fn_positions.append(False)

    return fn_positions