mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-20 01:14:20 +00:00
Fixed File::getCreationTime() to return the correct creation time on macOS/iOS
This commit is contained in:
parent
6b315c4e15
commit
ee4993f0ff
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue