diff --git a/src/java/native/libcephfs_jni.cc b/src/java/native/libcephfs_jni.cc index 347437c9aa2..f6192e17369 100644 --- a/src/java/native/libcephfs_jni.cc +++ b/src/java/native/libcephfs_jni.cc @@ -747,8 +747,10 @@ JNIEXPORT jobjectArray JNICALL Java_com_ceph_fs_CephMount_native_1ceph_1listdir } /* filter out dot files: xref: java.io.File::list() */ - if (ent->compare(".") && ent->compare("..")) + if (ent->compare(".") && ent->compare("..")) { contents.push_back(*ent); + ldout(cct, 20) << "jni: listdir: take path " << *ent << dendl; + } bufpos += ent->size() + 1; delete ent;