def METHOD_NAME(platform_spec):
    platform = PlatformFactory.new(platform_spec)
    platform_dir = platform.get_dir()
    parser = ManifestParserFactory.new_from_dir(platform_dir)
    result = parser.as_dict().get("examples") or []
    for example in result:
        example["files"] = [
            {
                "path": item,
                "url": (
                    "file://%s"
                    + os.path.join(platform_dir, "examples", example["name"], item)
                ),
            }
            for item in example["files"]
        ]
    return result