fileExists method

Future<bool> fileExists(
  1. String projectPath,
  2. String fileName
)

Check if a guideline file exists

Parameters:

  • projectPath: Root path of the ServerPod project
  • fileName: Name of the file to check (AGENTS.md or CLAUDE.md)

Returns true if the file exists, false otherwise.

Implementation

Future<bool> fileExists(
  String projectPath,
  String fileName,
) async {
  final file = File(p.join(projectPath, fileName));
  return await file.exists();
}