MCPcopy
hub / github.com/remotely-save/remotely-save / copyEntityAndCopyKeyEncSizeEnc

Function copyEntityAndCopyKeyEncSizeEnc

src/fsEncrypt.ts:66–71  ·  view source on GitHub ↗

* Useful if isPasswordEmpty()

(entity: Entity)

Source from the content-addressed store, hash-verified

64 * Useful if isPasswordEmpty()
65 */
66function copyEntityAndCopyKeyEncSizeEnc(entity: Entity) {
67 const res = cloneDeep(entity);
68 res["keyEnc"] = res["keyRaw"];
69 res["sizeEnc"] = res["sizeRaw"];
70 return res;
71}
72
73export class FakeFsEncrypt extends FakeFs {
74 innerFs: FakeFs;

Callers 5

_dealWithWalkMethod · 0.85
statMethod · 0.85
mkdirMethod · 0.85
writeFileMethod · 0.85
encryptEntityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected