[Zope3-dev] IKeyReference for files
Jegenye 2001 Bt (Miklós Prisznyák)
jegenye2001 at jegenye.com
Tue Mar 27 18:03:20 EDT 2007
2007/3/27, Martijn Faassen <faassen at startifact.com>:
> Hi there,
>
> I'm currently trying to think through how to implement IKeyReference for
> files on the filesystem. The end goal is to be able to use the intids
> service on these files, so that they can be cataloged.
>
> The simplistic approach to implement key references for files is simply
> to use the filesystem path as key reference: the path is easy to
> determine, and it's easy to resolve back to the file.
>
> Unfortunately this doesn't work in the case where the files can be moved
> on the filesystem.
Is it too expensive to compute a hash from the file contents and the
file attributes?
--
Best regards,
Miklós Prisznyák
Principal Consultant, owner
http://www.jegenye.com
More information about the Zope3-dev
mailing list