code: void fsyncDirectory() throws IOException {
      try (FileChannel channel = FileChannel.open(this.rootDir.toPath())) {
        channel.force(true);
      }
    }
docs: to ZOOKEEPER-2003 https://issues.apache.org/jira/browse/ZOOKEEPER-2003