MCPcopy
hub / github.com/webpack/webpack / checkExistence

Method checkExistence

lib/FileSystemInfo.js:3139–3152  ·  view source on GitHub ↗
(path, current, snap)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

_logMethod · 0.95

Tested by

no test coverage detected