Add a function to query the server for directory contents. Not quite
working yet