fix for bug #18186. remove work around in layout code and properly implement nsIFile::GetLastMofificationDate() on unix. r=vidur,jst,dougt a=waterson

This commit is contained in:
blizzard@redhat.com
2000-03-15 03:08:28 +00:00
parent 86deb99b4b
commit 8533bcaca3
3 changed files with 9 additions and 26 deletions

View File

@@ -776,8 +776,13 @@ NS_IMETHODIMP
nsLocalFile::GetLastModificationDate(PRInt64 *aLastModificationDate)
{
NS_ENSURE_ARG(aLastModificationDate);
VALIDATE_STAT_CACHE();
mLL_II2L(0, (PRUint32)mCachedStat.st_mtime, *aLastModificationDate);
CHECK_mPath();
PRFileInfo64 info;
if (PR_GetFileInfo64(mPath, &info) != PR_SUCCESS) {
return NSRESULT_FOR_ERRNO();
}
// PRTime is a 64 bit value
*aLastModificationDate = info.modifyTime;
return NS_OK;
}