Use pathwatcher.