antlir/compiler/items/mount.py [199:212]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if not mounts_path.exists():
        return

    for path, _next_dirs, _files in os.walk(
        # We are not `chroot`ed, so following links could access outside the
        # image; `followlinks=False` is the default -- explicit for safety.
        mounts_path,
        onerror=_raise,
        followlinks=False,
    ):
        relpath = Path(path).relpath(mounts_path)
        if relpath.basename() == MOUNT_MARKER:
            mountpoint = relpath.dirname()
            assert not mountpoint.endswith(b"/"), mountpoint
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



antlir/compiler/items/mount_utils.py [32:45]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if not mounts_path.exists():
        return

    for path, _next_dirs, _files in os.walk(
        # We are not `chroot`ed, so following links could access outside the
        # image; `followlinks=False` is the default -- explicit for safety.
        mounts_path,
        onerror=_raise,
        followlinks=False,
    ):
        relpath = Path(path).relpath(mounts_path)
        if relpath.basename() == MOUNT_MARKER:
            mountpoint = relpath.dirname()
            assert not mountpoint.endswith(b"/"), mountpoint
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



