dir.go: Made function a one liner.