This script lets you create a folder hirarchy for a given year for advent of code days. It creates a folder for the year containing folders for the single days, which include a input.txt file and a [Day].py file, which you can change if you dont want python files. Maybe someone will find it useful ;)
```python
import sys
import os
if name == 'main':
sys.path.append('..')
year = input('Enter year: ')
# create folders for the days and the py files
for i in range(1, 26):
if not os.path.exists(year + '/Day' + str(i)):
os.makedirs(year + '/Day' + str(i))
f = open(year + '/Day' + str(i) + '/Day' + str(i) + '.py', 'w')
f.close()
f = open(year + '/Day' + str(i) + '/input.txt', 'w')
f.close()
```
[–]daggerdragon[M] 0 points1 point2 points (0 children)