def get_file_size(options)
        url = options.fetch(:url)
        headers = options.fetch(:headers)
        file_size = options.fetch(:file_size)

        case url.scheme
        when 'file'
          File.size(url.path)
        when /https?/
          response = Typhoeus.head(url.to_s, headers: headers)
          length_value = response.headers['Content-Length'] || file_size
          length_value.to_i
        else
          raise URI::BadURIError, "Unknown URI scheme: #{url.scheme}"
        end
      end
def get_file_size(options)
        url = options.fetch(:url)
        headers = options.fetch(:headers)
        file_size = options.fetch(:file_size)

        case url.scheme
        when 'file'
          File.size(url.path)
        when /https?/
          response = Typhoeus.head(url.to_s, headers: headers)
          length_value = response.headers['Content-Length'] || file_size
          length_value.to_i
        else
          raise URI::BadURIError, "Unknown URI scheme: #{url.scheme}"
        end
      end
Retrieve the file size
 @param options [Hash]
 @return [Integer] the size of the requested file