I'm seeing this issue in both macos and linux
PATHS = ['/var/tmp', 'file:/var/tmp', 'file://var/tmp', 'file:///var/tmp']
{p:list(upath.UPath(p).iterdir()) for p in PATHS}
The variant "file://var/tmp" gives me the contents of "/tmp". The other variants work as expected.