stefanpenner

stefanpenner/fs-tree-diff

TypeScript
25
20
No license

```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 `

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

stefanpenner's profile
stefanpenner
86 contributions
hjdivad's profile
hjdivad
48 contributions
chadhietala's profile
chadhietala
5 contributions
dfreeman's profile
dfreeman
3 contributions
thousand's profile
thousand
3 contributions
amiller-gh's profile
amiller-gh
2 contributions
chriseppstein's profile
chriseppstein
2 contributions
trentmwillis's profile
trentmwillis
2 contributions
zackthehuman's profile
zackthehuman
2 contributions
chancancode's profile
chancancode
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet