changed full_scan to dir_scan