FIX: Don't fail when there's no directory to strip

FIX: Don’t fail when there’s no directory to strip

diff --git a/lib/compression/strategy.rb b/lib/compression/strategy.rb
index f5cd0ab..921ebd8 100644
--- a/lib/compression/strategy.rb
+++ b/lib/compression/strategy.rb
@@ -33,8 +33,10 @@ module Compression
     end
 
     def strip_directory(from, to, relative: false)
-      sanitized_from = sanitize_path(from)
-      sanitized_to = sanitize_path(to)
+      sanitized_from = sanitize_path(from) rescue nil
+      sanitized_to = sanitize_path(to) rescue nil
+      return unless sanitized_from && sanitized_to
+
       glob_path = relative ? "#{sanitized_from}/*/*" : "#{sanitized_from}/**"
       FileUtils.mv(Dir.glob(glob_path), sanitized_to) if File.directory?(sanitized_from)
     end

GitHub sha: fa66290b

This commit has been mentioned on Discourse Meta. There might be relevant details there: