You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The version metadata file should be a JSON file containing all of the checksums of the JSON files, this way the files do not need to be redownloaded if only one of them changes. We will use SHA-256 as the hashing algorithm.
if there are two files, courses.json and majors.json, then the meta.json file should look like:
We need a script to automatically do this: given a predefined list of file names, find the SHA-256 hash for each one if it exists in the working directory, encode it into HEX (64 characters since this is SHA-256) and write it into the meta.json file as described above.
If you decide to use python, consider the following code
The version metadata file should be a JSON file containing all of the checksums of the JSON files, this way the files do not need to be redownloaded if only one of them changes. We will use SHA-256 as the hashing algorithm.
if there are two files,
courses.json
andmajors.json
, then themeta.json
file should look like:We need a script to automatically do this: given a predefined list of file names, find the SHA-256 hash for each one if it exists in the working directory, encode it into HEX (64 characters since this is SHA-256) and write it into the
meta.json
file as described above.If you decide to use python, consider the following code
for smaller files, or
for larger files.
The text was updated successfully, but these errors were encountered: