class Aruba::Platforms::DetermineFileSize
Determine size of a file
@param [String] path
The path to file
@return [Integer]
Returns size if exists. Returns -1 if path does not exist
Public Instance Methods
call(path)
click to toggle source
# File lib/aruba/platforms/determine_file_size.rb, line 13 def call(path) return -1 unless File.file? path FileSize.new( File.size(path) ) end