execute method

  1. @override
FutureOr<bool> execute(
  1. ReleasePacker releasePacker,
  2. Directory rootDirectory, {
  3. ReleaseBundle? releaseBundle,
})
override

Implementation

@override
FutureOr<bool> execute(ReleasePacker releasePacker, Directory rootDirectory,
    {ReleaseBundle? releaseBundle}) {
  var filePath = joinPaths(rootDirectory.path, path);
  var file = File(filePath);

  if (file.existsSync()) {
    print('   ยป  Deleting file: $filePath');
    file.deleteSync();
    return true;
  }

  return false;
}