#pragma once

#include <util/datetime/base.h>
#include <util/folder/path.h>
#include <util/generic/maybe.h>

namespace NRTYServer {
class TJupiIndexVerifier {
public:
    struct TFileInfo {
        TFsPath Path;
        TInstant MTime;
        TString Hash;
    };

private:
    TVector<TFileInfo> RtdocIndexFileInfos;

public:
    TJupiIndexVerifier(const TFsPath& directory, const TMaybe<TString>& indexRegex);
    i32 Verify(bool crashOnDiff);
};
}
