Creating a Source type that points to a directory

I have 2 case classes in the same file extending this class. Which is why I made the leaf classes as case classes and left this as a non-case class