```js FSTree.calculateAndApplyPatch(newInputTree, inputDir, outputDir); ``` For the default operation, `FSTree.applyPatch` will apply the patch to the output directory with the following rules: - `unlink` – remove the specified file - `rmdir` – remove the specified folder - `mkdir` – create the specified folder - `create` – create the specified file - `change` – update the specified file to reflect changes You can also specify your own operation handlers via the `delegate` option. The delegate object can have any of the following keys: `unlink`, `rmdir`, `mkdir`, `create`, and `change`. Each key's value is a function that will be called when its respective operation is applied. For example: ```js const delegate = { create: (inputDir, outputDir, entry) => { // Custom create logic } }; FSTree.applyPatch(inputDir, outputDir, patch, delegate); ``` If you'd like to do something custom, you can also implement a `willApply` method on the delegate object. This will be called before any operations are applied, and is passed the same arguments as `
How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.