Sha256: f10e4e42b346904a02754268ea973a4e7f5596d454a160029eed6a1098dce207
Contents?: true
Size: 354 Bytes
Versions: 10
Compression:
Stored size: 354 Bytes
Contents
# frozen_string_literal: true module SdrClient module Deposit module FileMetadataBuilderOperations # Mime-type for this file. class MimeType NAME = 'mime_type' def self.for(filepath:, **) argv = Shellwords.escape(filepath) `file --mime-type -b #{argv}`.chomp end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems