def METHOD_NAME(self, instance, path):
    """Create expected files in instance data"""
    dir = os.path.dirname(path)
    file = os.path.basename(path)
    if "#" in file:
        def replace(match):
            return "%0{}d".format(len(match.group()))
        file = re.sub("#+", replace, file)
    if "%" not in file:
        return path
    expected_files = []
    start = instance.data["frameStart"]
    end = instance.data["frameEnd"]
    for i in range(int(start), (int(end) + 1)):
        expected_files.append(
            os.path.join(dir, (file % i)).replace("\\", "/"))
    return expected_files