Access Directory class in atom API

I am having trouble accessing the Directory class; https://atom.io/docs/api/v1.38.2/Directory

How does one access this? the docs does not say…

It would be the return value of some method. For example, https://atom.io/docs/api/v1.38.2/Project#instance-getDirectories