mirror of
https://github.com/ceph/ceph
synced 2024-12-18 17:37:38 +00:00
java: log listdir contents in java client
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
This commit is contained in:
parent
4a5abc60f7
commit
9c9c247dce
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user