@Override
    public boolean addFile(final String fileName, final Message fileMeta) {
        checkState();
        final Builder metaBuilder = LocalFileMeta.newBuilder();
        if (fileMeta != null) {
            metaBuilder.mergeFrom(fileMeta);
        }
        final LocalFileMeta meta = metaBuilder.build();
        return this.metaTable.addFile(fileName, meta);
    }
Snapshot writer to write snapshot into local file system.

@author boyan (boyan@alibaba-inc.com)

2018-Apr-08 11:51:43 AM
jraft-core/src/main/java/com/alipay/sofa/jraft/storage/snapshot/local/LocalSnapshotWriter.java