diff options
| author | alex <alex@pdp7.net> | 2022-03-13 17:31:30 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2022-03-13 17:31:30 +0100 |
| commit | 769433c2e44332f1a418192659c86fd31a310663 (patch) | |
| tree | 7a3fa8f367fe996025ea648e7940c0d2a835068f /build.py | |
| parent | 0a29609d5787a3a5037ff61d98dbbcfcf79ec228 (diff) | |
Add mirror of laspelis
See:
https://datahorde.org/how-to-recover-your-yahoo-groups-from-the-internet-archive/
https://github.com/alexpdp7/yahoo-groups-to-gmi
Diffstat (limited to 'build.py')
| -rwxr-xr-x | build.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env python3 import datetime import os +import pathlib import shutil import textwrap @@ -117,6 +118,7 @@ def build(): for directory, _, files in os.walk("static/gmi"): new_dir = directory.replace("static/gmi", "build/gmi") for file in files: + pathlib.Path(new_dir).mkdir(parents=True, exist_ok=True) shutil.copy(f"{directory}/{file}", f"{new_dir}/{file}") if __name__ == "__main__": |
