lib/io_streams/gzip/writer.rb in iostreams-0.19.0 vs lib/io_streams/gzip/writer.rb in iostreams-0.20.0
- old
+ new
@@ -2,10 +2,10 @@
module Gzip
class Writer
# Write to a file / stream, compressing with GZip
def self.open(file_name_or_io, **args, &block)
unless IOStreams.writer_stream?(file_name_or_io)
- IOStreams.mkpath(file_name_or_io)
+ IOStreams::File::Path.mkpath(file_name_or_io)
Zlib::GzipWriter.open(file_name_or_io, &block)
else
begin
io = Zlib::GzipWriter.new(file_name_or_io)
block.call(io)