16 lines
307 B
Python
Executable file
16 lines
307 B
Python
Executable file
#!/usr/bin/python3
|
|
|
|
from shutil import rmtree
|
|
from os import remove, mkdir
|
|
|
|
confirmation = input('If you really want to delete all releases, type CONFIRM: ')
|
|
|
|
if confirmation != 'CONFIRM':
|
|
print('Cancelled')
|
|
exit()
|
|
|
|
for dir in ['releases', 'latest']:
|
|
rmtree(dir)
|
|
mkdir(dir)
|
|
|
|
print('Reset complete')
|