code: private void indexDirectory(String id, fr.pilato.elasticsearch.crawler.fs.beans.Path path) throws Exception {
          esIndex(fsSettings.getElasticsearch().getIndexFolder(),
                  id,
                  PathParser.toJson(path),
                  null);
      }
docs: Index a Path object (AKA a folder) in elasticsearch
  @param id    id of the path
  @param path  path object
  @throws Exception in case of error