import { c as defineEventHandler, g as getQuery } from '../../../_/nitro.mjs';
import { existsSync, statSync } from 'fs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';

const fileExists_get = defineEventHandler((event) => {
  const { path } = getQuery(event);
  if (!existsSync(path)) return false;
  else if (statSync(path).isDirectory()) return false;
  return true;
});

export { fileExists_get as default };
//# sourceMappingURL=file-exists.get.mjs.map
