Why don't we use File.empty? rather than File.zero?

I found the File API said that:

Find if a file is empty (i.e zero length) with the zero? method:

=> false

So why don’t we just use File.empty? which is more meaningful?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs