def install_files(ctx):
    for subdir, files in ctx.to_install.items():
        # Generate the full subdirectory.
        target_root = fbuild.path.Path(subdir).addroot(ctx.install_prefix)
        for file, froot in files:
            file = file.relpath(file.getcwd())
            # Generate the target path.
            target = file.removeroot('' / ctx.buildroot).addroot(target_root /
                froot)
            # Copy the file.
            fbuild.builders.file.copy(ctx, file, target)

# ------------------------------------------------------------------------------
dataset/ETHPy150Open felix-lang/fbuild/lib/fbuild/main.py/install_files/swapped operands of `/`