prepareCleanup method

void prepareCleanup()

Record which runCiCleanupDirs are missing before the tests and the build (and devBuildSetup), the ones then created are deleted by cleanup.

Implementation

void prepareCleanup() {
  if (isWorkspaceRoot || options.noCleanup) {
    return;
  }
  _cleanupMissingDirs = runCiCleanupDirs
      .where(
        (dir) =>
            FileSystemEntity.typeSync(
              _cleanupDirPath(dir),
              followLinks: false,
            ) ==
            FileSystemEntityType.notFound,
      )
      .toList();
}