build.hashers.apenwarr
- Special meaning of keys?
- No, but they must have an associated file name.
This hasher is like the build.hashers.mtime
hasher but it not only keeps track of the modification time, but also the inode, file size, owner and group, etc. More details can be found at the article mtime comparison considered harmful.
Usage
local Hasher = require "build.hashers.apenwarr" (Posix_File_System, File_Of_Key)
local hasher = Hasher.create(posix_file_system)
Posix_File_System
must be the POSIX file system structure to use.File_Of_Key
must be a function that will be called likeFile_Of_Key(key)
. It must return the filename of the file associated with the key, ornil
if the key has no filename.posix_file_system
must be thePosix_File_System
instance to use.
Notes
Same note from the mtime
rebuilder about file-less keys applies here.