error:Call to a member function get_files() on string