get directory contents of couchdb dir.