MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / createTempFile

Method createTempFile

3rdparty/Amalgamate/juce_core_amalgam.cpp:2739–2749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2737}
2738
2739File File::createTempFile (const String& fileNameEnding)
2740{
2741 const File tempFile (getSpecialLocation (tempDirectory)
2742 .getChildFile ("temp_" + String::toHexString (Random::getSystemRandom().nextInt()))
2743 .withFileExtension (fileNameEnding));
2744
2745 if (tempFile.exists())
2746 return createTempFile (fileNameEnding);
2747
2748 return tempFile;
2749}
2750
2751#if JUCE_UNIT_TESTS
2752

Callers

nothing calls this directly

Calls 5

withFileExtensionMethod · 0.80
getChildFileMethod · 0.80
nextIntMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected