I would probably just call this `isLocal`, and set it to `defaultFs == null || uri.getScheme == "file"`. In Scala you can do `==` on strings :)