deleteTempScript static method
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);
}