Re: Globally, persistently identifying a file
Re: Globally, persistently identifying a file
- Subject: Re: Globally, persistently identifying a file
- From: "email@hidden" <email@hidden>
- Date: Thu, 26 Apr 2012 23:50:20 +0100
On 26 Apr 2012, at 23:07, Nick Zitzmann wrote:
>
> On Apr 26, 2012, at 3:02 PM, email@hidden wrote:
>
>>
>> On 26 Apr 2012, at 21:36, Nick Zitzmann wrote:
>>
>>>
>>> On Apr 26, 2012, at 2:24 PM, Brian Bergstrand wrote:
>>>
>>>> Prior to 10.6 you would use Alias records, but in 10.6 Apple added URL-based bookmarks (which are pretty much alias records with some new features).
>>>>
>>>> Cocoa: NSURL bookmarks
>>>>
>>>> C/C++: CFURL bookmarks
>>>
>>> I know about bookmarks, but the bookmark data is not persistent between reboots despite still being resolvable between reboots. I need something that will not change under any circumstances other than deleting and re-creating the file/folder. This is so I can search for a value in a database corresponding to a file/folder.
>>
>> Is it right to say that what are doing is uniquely identifying the file/folder content?
>> If so, git uses hashes for this purpose, a fact that you probably know already.
>
>
> I need to uniquely identify the file/folder, even if the contents change, so SHA/MD5/etc. hashes won't work.
Is an object orientated interpretation of the problem helpful?
We are trying to track a file or path object as a unique entity with an object orientated file system regardless of the file/path object's current path or content properties.
If so then it's a question of identifying whether the OS X filesystem conforms to such a model or not, which probably brings us right back to the original question.
Jonathan
_______________________________________________
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