@Override
  public void finish(TileArchiveMetadata tileArchiveMetadata) {
    if (metadataPath == null) {
      return;
    }
    try (OutputStream s = new CountingOutputStream(Files.newOutputStream(metadataPath), bytesWritten::incBy)) {
      TileArchiveMetadataDeSer.mbtilesMapper().writeValue(s, tileArchiveMetadata);
    } catch (IOException e) {
      throw new UncheckedIOException(e);
    }
  }
Writes tiles as separate files. The default tile scheme is z/x/y.pbf.
<p/>
Supported arguments
<dl>
<dt>(files_)tile_scheme</dt>
<dd>The tile scheme e.g. {x}/{y}/{z}.pbf. The default is {z}/{x}/{y}.pbf. See {@link TileSchemeEncoding} for more
details.</dd>
<dt>(files_)metadata_path</dt>
<dd>The path the meta data should be written to. The default is BASEPATH/metadata.json. "none" can be used to
suppress writing metadata.</dd>
</ul>

Usages:

<pre>
--output=/path/to/tiles/ --files_tile_scheme={z}/{x}/{y}.pbf --files_metadata_path=/some/other/path/metadata.json
--output=/path/to/tiles/{z}/{x}/{y}.pbf
--output=/path/to/tiles?format=files&amp;tile_scheme={z}/{x}/{y}.pbf
</pre>

@see ReadableFilesArchive
@see TileSchemeEncoding
planetiler-core/src/main/java/com/onthegomap/planetiler/files/WriteableFilesArchive.java