It makes sense, I guess the original motivation was to be similar to `def path`, which returns a String (implementing the `AbstractFile` interface)