File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,15 @@ def file_hash(filename):
29
29
30
30
31
31
def validate_data (data_directory ):
32
- """ Read ``data_hashes.txt`` file in `data_directory`, check hashes
32
+ """ Read ``hash_list.txt`` file in ``data_directory``, check hashes
33
+
34
+ An example file ``data_hashes.txt`` is found in the baseline version
35
+ of the repository template for your reference.
33
36
34
37
Parameters
35
38
----------
36
39
data_directory : str
37
- Directory containing data and ``data_hashes .txt`` file.
40
+ Directory containing data and ``hash_list .txt`` file.
38
41
39
42
Returns
40
43
-------
@@ -44,9 +47,9 @@ def validate_data(data_directory):
44
47
------
45
48
ValueError:
46
49
If hash value for any file is different from hash value recorded in
47
- ``data_hashes .txt`` file.
50
+ ``hash_list .txt`` file.
48
51
"""
49
- # Read lines from ``data_hashes .txt`` file.
52
+ # Read lines from ``hash_list .txt`` file.
50
53
# Split into SHA1 hash and filename
51
54
# Calculate actual hash for given filename.
52
55
# If hash for filename is not the same as the one in the file, raise
You can’t perform that action at this time.
0 commit comments