From ee4993f0ffa4aa6c0b3e12007acd1b68bf0c2525 Mon Sep 17 00:00:00 2001 From: hogliux Date: Mon, 14 Aug 2017 11:59:31 +0100 Subject: [PATCH] Fixed File::getCreationTime() to return the correct creation time on macOS/iOS --- modules/juce_core/native/juce_posix_SharedCode.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/juce_core/native/juce_posix_SharedCode.h b/modules/juce_core/native/juce_posix_SharedCode.h index d4702a31e8..2e6d75547b 100644 --- a/modules/juce_core/native/juce_posix_SharedCode.h +++ b/modules/juce_core/native/juce_posix_SharedCode.h @@ -393,7 +393,11 @@ void File::getFileTimesInternal (int64& modificationTime, int64& accessTime, int { modificationTime = (int64) info.st_mtime * 1000; accessTime = (int64) info.st_atime * 1000; + #if (JUCE_MAC && MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_5) || JUCE_IOS + creationTime = (int64) info.st_birthtime * 1000; + #else creationTime = (int64) info.st_ctime * 1000; + #endif } }