cleanupTempFile

fnvoid cleanupTempFile(string path)

Clean up a temporary file.

This function removes a temporary file created by createTempElfFile. It handles errors gracefully and does not throw if the file doesn't exist.

Parameters

pathThe full path to the temporary file to remove.

Examples

string tempPath = createTempElfFile(elfData);
scope (exit) cleanupTempFile(tempPath);