Add getDirectory to Local adapter

Makes it possible to access the directory path from the adapter. Fixes #208