deleteOldEndpoints method

void deleteOldEndpoints(
  1. String pathDir
)

Deletes old endpoint files from the specified directory.

Parameters:

  • pathDir: The directory to search for old endpoint files

Implementation

void deleteOldEndpoints(String pathDir) {
  final findOld = find(
    '*_endpoints.dart',
    workingDirectory: pathDir,
  ).toList();

  for (var item in findOld) {
    delete(item);
  }
}