(path, current, snap)
| 3137 | * @returns {boolean} true, if ok |
| 3138 | */ |
| 3139 | const checkExistence = (path, current, snap) => { |
| 3140 | if (!current !== !snap) { |
| 3141 | // If existence of item differs |
| 3142 | // it's invalid |
| 3143 | if (this._remainingLogs > 0) { |
| 3144 | this._log( |
| 3145 | path, |
| 3146 | current ? "it didn't exist before" : "it does no longer exist" |
| 3147 | ); |
| 3148 | } |
| 3149 | return false; |
| 3150 | } |
| 3151 | return true; |
| 3152 | }; |
| 3153 | /** |
| 3154 | * Checks true, if ok. |
| 3155 | * @param {string} path file path |