เพื่อ Touch ไฟล์ทั้งหมดแบบ Recursive คุณต้อง Walk Directory Tree ด้วย os.walk และ Touch ไฟล์ทั้งหมดในมันด้วย os.utime(path_to_file) ตัวอย่าง import os # Recursively walk the tree for root, dirs, files in os.walk(path): for file in files: # Set utime to current time os.utime(os.