class FDB::DirectoryLayer
def exists?(db_or_tr, path=[])
def exists?(db_or_tr, path=[]) db_or_tr.transact do |tr| check_version(tr, false) path = to_unicode_path(path) node = find(tr, path).prefetch_metadata(tr) next false if !node.exists? if node.is_in_partition? next node.get_contents(self).exists?(tr, node.get_partition_subpath) end true end end