Automatically create destination directories
This commit is contained in:
parent
4a9ca0db99
commit
1e68b90a7b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user