Example #1
0
string FilesystemCache::fileUrl(const Sha1::Digest& sha1) const {
    return Directory::join(filePath(sha1), sha1.hexString().substr(2));
}
Example #2
0
string FilesystemCache::filePath(const Sha1::Digest& sha1) const {
    return Directory::join(_url, sha1.hexString().substr(0, 2));
}