FileStatus base = nnproxy.getFileInfo(path); if ((base != null) && base.isDir()) { writeInfo(base, doc); }