Sync readdir in notification_template