app/models/et_atos_file_transfer/exported_file.rb
# Downloads the stored file to the local file system
#
# @param [String] filename The filename to download to
Downloads the stored file to the local file system
Downloads the stored file to the local file system
def download_blob_to(filename)
      File.open(filename, 'w') do |output_file|
        output_file.binmode
        file.blob.download { |chunk| output_file.write(chunk) }
        output_file.rewind
      end
    end
def download_blob_to ( filename ) File . open ( filename , 'w' ) do | output_file | output_file . binmode file . blob . download { | chunk | output_file . write ( chunk ) } output_file . rewind end end
Downloads the stored file to the local file system
Downloads the stored file to the local file system
filename
filename The filename to download to
filename The filename to download to