`WireClient` has a `isDir` function that should be used instead of `path.substr(-1) === '/'`.