string tempPath = createTempElfFile(elfData);
scope (exit) cleanupTempFile(tempPath);cleanupTempFile
fn
void cleanupTempFile(string path)Clean up a temporary file.
This function removes a temporary file created by createTempElfFile, along with its exclusive parent directory when it is empty afterwards. It handles errors gracefully and does not throw if the file doesn't exist.
Parameters
path | The full path to the temporary file to remove. |