2021-05-24 01:24:22 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2010-11-30 16:27:59 +08:00
|
|
|
module Zip
|
2022-11-07 05:26:37 +08:00
|
|
|
class StreamableDirectory < Entry # :nodoc:
|
2020-02-19 15:28:46 +08:00
|
|
|
def initialize(zipfile, entry, src_path = nil, permission = nil)
|
2010-11-30 16:27:59 +08:00
|
|
|
super(zipfile, entry)
|
|
|
|
|
|
|
|
@ftype = :directory
|
2020-02-19 15:28:46 +08:00
|
|
|
entry.get_extra_attributes_from_path(src_path) if src_path
|
|
|
|
@unix_perms = permission if permission
|
2010-11-30 16:27:59 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
# Copyright (C) 2002, 2003 Thomas Sondergaard
|
|
|
|
# rubyzip is free software; you can redistribute it and/or
|
|
|
|
# modify it under the terms of the ruby license.
|