Skip to content

Commit

Permalink
Save temporary files to a temporary directory
Browse files Browse the repository at this point in the history
  • Loading branch information
aeroastro committed Apr 14, 2017
1 parent 98f4f2e commit 210a26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zip/streamable_stream.rb
Expand Up @@ -5,7 +5,7 @@ def initialize(entry)
dirname = if zipfile.is_a?(::String)
::File.dirname(zipfile)
else
'.'
nil
end
@temp_file = Tempfile.new(::File.basename(name), dirname)
@temp_file.binmode
Expand Down

0 comments on commit 210a26a

Please sign in to comment.