process dir of poly files script