In <[email protected]> Ferrous Cranus 
<[email protected]> writes:

> > If that's the case, then I figure you have about 3 choices:
> > 1) use the file path as your key, instead of requiring a number

> No, i cannot, because it would mess things at a later time on when i for
> example:

> 1. mv name.html othername.html   (document's filename altered)
> 2. mv name.html /subfolder/name.html   (document's filepath altered)

Will the file always reside on the same device?  If so, perhaps you could
use the file inode number as the key.

(That seems fairly brittle though.  For example if the disk crashes and is
restored from a backup, the inodes could easily be different.)

-- 
John Gordon                   A is for Amy, who fell down the stairs
[email protected]              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to