rlib/aws_connection.rb
# Uses systems md5sum to fetch the file's md5
# @param filename [String] Path to the file
# @return md5 [String] MD5 checksum as a hexstring (Mac/FreeBSD equivalent is /sbin/md5. Linux equivalent is /usr/bin/md5sum)
Uses systems md5sum to fetch the file's md5
Uses systems md5sum to fetch the file ' s md5
def file_md5(filename:)
    md5 = `/usr/bin/md5sum #{filename}`.split(' ')[0].strip 
    return $CHILD_STATUS == 0 ? md5 : nil
  end
def file_md5 ( filename : ) md5 = ` /usr/bin/md5sum  #{ filename } ` . split ( ' ' ) [ 0 ] . strip return $CHILD_STATUS == 0 ? md5 : nil end
Uses systems md5sum to fetch the file's md5
Uses systems md5sum to fetch the file ' s md5
# Linux # `/sbin/md5 #{filename}`.split(' ')[-1].strip # Mac OS
md5  MD5 checksum as a hexstring (Mac/FreeBSD equivalent is /sbin/md5. Linux equivalent is /usr/bin/md5sum)
md5 MD5 checksum as a hexstring ( Mac / FreeBSD equivalent is / sbin / md5 . Linux equivalent is / usr / bin / md5sum )
String
filename
Path to the file
Path to the file