(path, current, snap)
| 3120 | * @returns {boolean} true, if ok |
| 3121 | */ |
| 3122 | const checkHash = (path, current, snap) => { |
| 3123 | if (current !== snap) { |
| 3124 | // If hash differ it's invalid |
| 3125 | if (this._remainingLogs > 0) { |
| 3126 | this._log(path, "hashes differ (%s != %s)", current, snap); |
| 3127 | } |
| 3128 | return false; |
| 3129 | } |
| 3130 | return true; |
| 3131 | }; |
| 3132 | /** |
| 3133 | * Checks true, if ok. |
| 3134 | * @param {string} path file path |