Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FSSetCatalogInfo not using full UTCDateTime



I am not sure why the fraction is set to zero, nor do I know if any other
formats support it... But if all you are doing is comparing the
mod/creation dates of files, you don't need the fractions field at all. The
other fields should provide enough granularity to get the job done. It will
be _extremely_ rare that the comparison between two files will go down to
the fraction... Good luck...

--Rob


On 2/27/02 5:20 AM, "Matt Gough" <email@hidden> wrote:

> On OS X, does the File Manager not respect the fraction field of any
> UTCDateTime records that are used when setting catalog info for one of its
> dates?
>
> After calling the following code (on a file on an HFS+ volume),
> catInfo.contentModDate.fraction is always set to zero, even though
> GetUTCDateTime sets it as appropriate.
>
> FSCatalogInfo catInfo;
>
> GetUTCDateTime(&catInfo.contentModDate, kUTCDefaultOptions);
>
> ::FSSetCatalogInfo(&myRef, kFSCatInfoContentMod, &catInfo);
> ::FSGetCatalogInfo(&myRef, kFSCatInfoContentMod, &catInfo, nil, nil, nil);
>
>
> Are there perhaps file systems for which the fraction is preserved?
>
>
> What I am really interested in is correctly identifying identical files on
> two different volumes for synchronization purposes. Comparing the dates
> could be problematic if one volume format has fractions and the other
> doesn't. (Obviously, I could just ignore the fraction in the compare, but I
> want a better understanding of what is really going on before embarking down
> the wrong road).
>
> Matt Gough
> _______________________________________________
> carbon-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/carbon-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >FSSetCatalogInfo not using full UTCDateTime (From: Matt Gough <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.