java: log listdir contents in java client

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
Noah Watkins 2012-10-25 08:51:33 -07:00
parent 4a5abc60f7
commit 9c9c247dce

View File

@ -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;