Removing deprecated method file_scan_directory.