On Thu, Feb 11, 2010 at 1:23 PM, Ville M. Vainio <[email protected]> wrote:

> What do you mean exactly? The hash is computed from full path, cache
> entries are counted from content.

1. initFileDB computes  dbdirname as follows:

    pth, bname = split(fn)
    ...
    self.dbdirname = dbdirname = join(g.app.homeLeoDir,'db',
       '%s_%s' % (bname,hashlib.md5(fn).hexdigest()))

So this directory can contain entries from many places.

2. You are mostly correct about the key.  fileKey computes using its s
and contents args. For files (the present fcache entries) s is
c.mFileName, a full path.  For minor entries, however, this is not
true.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to