dir.py v2 and clean script