Can the date modified of a file be zero? Or is the start of the epoch represented as 1? Is this a standard or a design decision?
The relevant code in JUCE would be this section which fails when modificationTime
is 0:
bool File::setFileTimesInternal (int64 modificationTime, int64 accessTime, int64 /*creationTime*/) const
{
...
if ((modificationTime != 0 || accessTime != 0) && juce_stat (fullPath, info))
{
... set the time ...
}
return false;
}
Thanks for any insight on this