ES3File.Sync

public static void Sync(string filePath, ES3Settings settings)

Description

Synchronises this ES3File with a file in storage.

If no parameters are supplied, it will use the file specified when creating the ES3File.

If syncWithFile was set to true when creating the ES3File, or this parameter was not set, individual keys in the file in storage will be overwritten and any keys deleted from this ES3File will not be removed from the file in storage.

If the syncWithFile parameter was set to false when creating the ES3File, syncing will overwrite the entire file in storage.

Parameters

filePath [Optional] The relative or absolute path of the file we want to synchronise with in storage.

settings

[Optional] The settings we want to use to override the default settings.

Examples

C#

JS