Upload scripts/StackExtractor.py with huggingface_hub
Browse files
scripts/StackExtractor.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import subprocess, pathlib
|
| 2 |
+
|
| 3 |
+
for file in pathlib.Path("stackexchange").glob("*.7z"):
|
| 4 |
+
subprocess.call(["7z","e","-y",file, f'-o{file.with_suffix("")}'])
|