boop.py 498 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/env python3

import os
import shutil


def main():
    # Make sure output dir doesn't exist (shutil will create it later)
    output_path = os.path.join(os.curdir, "output")
    if os.path.isdir(output_path):
        shutil.rmtree(output_path)

    # And copy the files from ./content to ./output
    input_path = os.path.join(os.curdir, "content")
    if os.path.isdir(input_path):
        shutil.copytree(input_path, output_path)


if __name__ == "__main__":
    main()
    print("Boop!")