Added error check for ceph_opendir