| 12345678910111213141516 |
- """Compute sha256 hashes for all files"""
- import pooch
- if __name__ == "__main__":
- pooch.make_registry(
- "test_data",
- "files-registry.txt", # destination file
- )
- # Remove .DS_Store files from the file registry
- with open("files-registry.txt", "r+") as f:
- lines = [line for line in f if ".DS_Store" not in line]
- f.seek(0) # move pointer to the start of the file
- f.truncate() # delete from the pointer to the end
- f.writelines(lines)
|