working demo of retrieving dir listing