What is DATA_FOLDER? that should be a path (to a directory content) which you expect your directories are in it.
The iterdir()
yields path objects of the directory contents.
from pathlib import Path
path = Path('D:/')
for _dir in path.iterdir():
print(_dir)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…