diff options
| author | Stanislav Boboň | 2020-11-28 23:06:49 +0100 |
|---|---|---|
| committer | Stanislav Boboň | 2020-11-28 23:06:49 +0100 |
| commit | 41f76dff03214cebb0872dcd703a164e2442a88b (patch) | |
| tree | dccea2e2266b8ac6e8a9a51ce30bcdad7a06e095 | |
| parent | c1d009a18f0280e1fc0ad7f4a241784c0047d65f (diff) | |
| download | sec-certs-41f76dff03214cebb0872dcd703a164e2442a88b.tar.gz sec-certs-41f76dff03214cebb0872dcd703a164e2442a88b.tar.zst sec-certs-41f76dff03214cebb0872dcd703a164e2442a88b.zip | |
gitignore for dataset + algorithm file creation
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | sec_certs/dataset.py | 3 |
2 files changed, 6 insertions, 1 deletions
@@ -96,6 +96,7 @@ venv/ ENV/ env.bak/ venv.bak/ +virt/ # Spyder project settings .spyderproject @@ -109,3 +110,6 @@ venv.bak/ # mypy .mypy_cache/ + +# fips dataset +fips_dataset/ diff --git a/sec_certs/dataset.py b/sec_certs/dataset.py index e53b230c..771a1ee2 100644 --- a/sec_certs/dataset.py +++ b/sec_certs/dataset.py @@ -349,7 +349,7 @@ class FIPSDataset(Dataset): def algs_dir(self) -> Path: return self.web_dir / 'algorithms' - def find_empty_pdfs(self) -> (List, List): + def find_empty_pdfs(self) -> Tuple[List, List]: missing = [] not_available = [] for i in self.certs: @@ -421,6 +421,7 @@ class FIPSDataset(Dataset): self.web_dir.mkdir(parents=True, exist_ok=True) self.policies_dir.mkdir(exist_ok=True) + self.algs_dir.mkdir(exist_ok=True) # Download files containing all available module certs (always) html_files = ['fips_modules_active.html', |
