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 Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=fNa3teiDEMqWvTO0LNXxz3Tiu/pKCWdp9Pr6AkDIg/k=; b=NnDzA8DVGyN0yiyNCAVtdpLS7IokdqlabMdv+7ZUjTOir7yAJx1xst0CHKwwbyxXAz U2rkS230aho4CkzBwFnqmXnDpkeW/i4P/JwZNDa2oBezYxurShNVqX9790oagUnEepaj /80UQq3nI6sOFy8kvYAIn5RxWZTYbl/m6wGHo= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=H3Z1EgXQ7yHAk4amm3CkSsYiwD8YgoIdCRYf+4ybSF8DgwCKNoVuPGaKHEbZ54s1dk m41N9HOTHmN3Z9tEpM/4B4EfB0JmcTMBi2fetA26csLopJJ0RMK8BJ9xs01NFq6K7G6S Lqr90x84HsffXxVOsmvjzFw9ONcRuYs+7Ny+0= I needed this to be sure what I am doing is right. It is best tested by using a tool already in use. On Thu, May 14, 2009 at 3:19 PM, Terry Lambert <tlambert@apple.com> wrote:
On May 14, 2009, at 2:43 AM, Terry Lambert wrote:
On May 12, 2009, at 10:40 PM, rohan a wrote:
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.
creation time and finder info can be checked using /Developer/Tools/GetFileInfo BSD flags using ls -lo <filename>
How do I check if the backup time and text encoding hint have been restored properly?
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.
-- 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
rohan a