You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
251 B
Python

2 years ago
import os
names = []
for entry in os.scandir('projects'):
if not entry.name.startswith('.') and entry.is_dir():
names.append(entry.name)
for name in names:
os.rename(f'projects/{name}/documentation.md', f'projects/{name}/{name}.md')