if (-f $filepath && (-M $filepath > $daysToPurge))