Re: backup and restore of common attributes like backup time creation time etc.
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Hello, I use getattrlist() and setattrlist() to backup/restore ATTR_CMN_CRTIME, ATTR_CMN_BKUPTIME, ATTR_CMN_FNDRINFO, ATTR_CMN_FLAGS and ATTR_CMN_SCRIPT. How do I check if the backup time and text encoding hint have been restored properly? -- Terry _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On May 14, 2009, at 2:43 AM, Terry Lambert wrote: On May 12, 2009, at 10:40 PM, rohan a wrote: creation time and finder info can be checked using /Developer/Tools/ GetFileInfo BSD flags using ls -lo <filename> Call getattrlist() on what you just called setattrlist() on, and compare the results. I have to add that this seems to me to be a lot like using rm to remove a file, not getting an error, and then using ls to make sure it's actually gone, even though you didn't get an error on the rum. This email sent to site_archiver@lists.apple.com
participants (1)
-
Terry Lambert