From 77f61a98a61719ceaf9507723a3fe84a7e0dc925 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Tue, 7 Jan 2014 20:53:36 +0100 Subject: fix mime_type for files with spaces --- lib/overwrite.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/overwrite.rb b/lib/overwrite.rb index 0830490..1c9517d 100644 --- a/lib/overwrite.rb +++ b/lib/overwrite.rb @@ -128,7 +128,7 @@ end class File # @return [String] mime_type including charset using linux cmd command def mime_type - `file -ib #{self.path}`.chomp + `file -ib '#{self.path}'`.chomp end end -- cgit v1.2.3