Judging from the comments made in the code review video, @btm seemed unclear that Tempfile inherits from File.  The `flush` method is definitely available for it.