class FDB::DirectoryLayer

def open_directory(path, options, existing_node)

def open_directory(path, options, existing_node)
  if options[:layer] and !options[:layer].empty? and options[:layer] != existing_node.layer
    raise 'The directory was created with an incompatible layer.'
  end
  existing_node.get_contents(self)
end