Wrong value for File::getCreationTime()


#1

Hello,

File::getCreationTime()  return the File::getLastModificationTime instead of Creation Time for file and folder.

 

For now test on osx 10.6.8 with the helloworld example project from the JUCE-master zip download today.


#2

Yes, I think some file systems don't actually provide a creation time.


#3

Why not use st_birthtime instead of st_ctime in File::getFileTimesInternal ?
 


#4

I don't think that's available in all OS versions.


#5

As far as I understand the informations I found, it should be supported on all OSX (it is after all in the Darwin reference)

https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man2/stat.2.html

 

It is working on my iMac for 10.6.8, 10.7.5, 10.8.5 and 10.9.5.


#6

ok, thanks, I'll have a look.


#7

Base SDK need to be Mac OS X 10.6 or latter

Mac OS X Deployment Target need to be Mac OS X 10.6 or latter

 

For now the use of st_birthtime birthtime instead of st_ctime seems to be great for my current needs.

Hope this can be of use for you also.