file_hashes
file_hashes
#
The file_hashes table: leaf hashes remembered by path and stat, on their own connection.
FileHashes
#
A HashCache over the file_hashes table, so hashing never waits on the index.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/file_hashes.py
__init__(connection)
#
Serve the cache over connection, which this object then owns.
close()
#
forget(source)
#
Drop every remembered path under source.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/file_hashes.py
lookup(path, stat)
#
The remembered hash of path at stat, if any.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/file_hashes.py
move(source, destination)
#
Re-key every remembered path under source to live under destination.
Source code in capturegraph-lib/capturegraph/recipes/scratch/index/file_hashes.py
store(path, stat, hash)
#
Remember that path at stat hashes to hash.