Last active
October 23, 2020 17:49
-
-
Save brianspiering/cff181787b15ca610797a97eda7a02cc to your computer and use it in GitHub Desktop.
Make folders based items in a file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Make folders based items in a file." | |
from pathlib import Path | |
names = Path("names.txt").read_text().split("\n") | |
for name in names: | |
p = Path("/output/") / name | |
p.mkdir(exist_ok=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment