deleteTempScript static method

Future<void> deleteTempScript(
  1. String? scriptPath
)

Deletes file created by createTempScript as well as containing folder (non-blocking)

Implementation

static Future<void> deleteTempScript(String? scriptPath) async {
  if ((scriptPath == null) || scriptPath.isEmpty) {
    return;
  }

  await File(scriptPath).parent.delete(recursive: true);
}