import{existsSync as i}from"fs";import{logger as o}from"../../server/tools/notifiers/logger.js";import{reporter as t}from"../../server/tools/notifiers/reporter.js";async function l(r,e=!1){return i(r)?(e?o.warn(`File "${r}" will be overwritten.`):await t.panicOnContentError(`File "${r}" already exists. Use --force [-f] option to override.`),e):!0}export{l as isValidFilePath};
