Use td_io_get_file_size() instead of calling ->get_file_size()