Lines Matching refs:exists
1513 })), e.exists = function (e, t) {
1514 return "function" == typeof t ? n.exists(e, t) : new Promise((t => n.exists(e, t)))
1715 if (r.errorOnExist) throw new Error(`'${n}' already exists`)
1811 if (!r.overwrite) return r.errorOnExist ? u(new Error(`'${n}' already exists`)) : u();
2257 if (xu.existsSync(t)) throw new Error("dest already exists.");
2280 zu(t, ((u, o) => u ? r(u) : o ? r(new Error("dest already exists.")) : qu(e, t, n, r)))
2868 if (t(`configForCategory: searching for config for ${e}`), o.has(e)) return t(`configForCategory: ${e} exists in config, returning it`), o.get(e);
3798 })), e.exists = function (e, t) {
3799 return "function" == typeof t ? n.exists(e, t) : new Promise((t => n.exists(e, t)))
3985 if (!r.overwrite) return r.errorOnExist ? u(new Error(`'${n}' already exists`)) : u();
4059 if (r.errorOnExist) throw new Error(`'${n}' already exists`)
4424 return r ? dl(e, t, n, u) : n ? sl(t, (r => r ? u(r) : dl(e, t, n, u))) : void al(t, ((r, o) => r ? u(r) : o ? u(new Error("dest already exists.")) : dl(e, t, n, u)))
4469 if (pl.existsSync(t)) throw new Error("dest already exists.");
4609 return void 0 === t ? e : Ul.default.isAbsolute(t) ? Gl.default.existsSync(t) && Gl.default.statSync(t).isFile() ? ((0, Wl.logInfo)(`File already exists: ${t}`), e) : (Gl.default.ensureDirSync(t), t) : (zl || ((0, Wl.logInfo)(`Invalid custom userhome hvigor data dir:${t}`), zl = !0), e)