Use pathname.size instead of File.size name.