Added function for listing directory contents