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