[PATCH v6 11/15] digest_cache: Add support for directories