Add a stat_hash action to extend standard stat with the file hash.