Added a new method to the interface to be able to query directories.