public static bool CheckEnvironment(string path) { if (!FolderHashInfo.TryFind(path, out FolderHashInfo savedInfo)) { return(false); } var actualInfo = FolderHashInfo.Create(path); return(savedInfo.Equals(actualInfo)); }
public static bool CheckEnvironment(FolderHashInfo info) { var actualInfo = FolderHashInfo.Create(info.Location); return(info.Equals(actualInfo)); }
public static void SaveState(string path, string stateName) { var state = FolderHashInfo.Create(path, stateName); state.Save(path); }