Automatically create destination directories

This commit is contained in:
theo@manjaro 2023-01-12 22:19:54 +01:00
parent 4a9ca0db99
commit 1e68b90a7b
1 changed files with 4 additions and 0 deletions

View File

@ -520,6 +520,10 @@ def copy_static_files(source, dest):
# Main call
if __name__ == "__main__":
# Check for the destination folders
for dir in [htmldir, geminidir]:
if not os.path.isdir(dir):
os.mkdir(dir)
all_posts = []
local = False
if len(sys.argv) > 1: