Re: backup and restore of common attributes like backup time creation time etc.
Re: backup and restore of common attributes like backup time creation time etc.
- Subject: Re: backup and restore of common attributes like backup time creation time etc.
- From: rohan a <email@hidden>
- Date: Thu, 14 May 2009 15:21:40 +0530
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 <email@hidden> 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden