size?

File.size?(file_name) â Integer or nil
Class Public methods

Returns nil if file_name doesn't exist or has zero size, the size of the file otherwise.

file_name can be an IO object.

doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.