module GPhoto2::CameraFolder::Compression
Overview
Provides methods to compress the contents of the folder.
Direct including types
Defined in:
gphoto2/camera_folder/compression.crInstance Method Summary
-
#to_zip_file(io : IO, root : String | Nil = nil) : Nil
Writes the compressed contents of the folder to io.
-
#to_zip_file(root : String | Nil = nil) : File
Returns a temporary file with the compressed contents of the folder.
-
#to_zip_file(root : String | Nil = nil, &) : Nil
Yields a temporary file with the compressed contents of the folder.
Instance Method Detail
def to_zip_file(io : IO, root : String | Nil = nil) : Nil
#
Writes the compressed contents of the folder to io.
def to_zip_file(root : String | Nil = nil) : File
#
Returns a temporary file with the compressed contents of the folder.
def to_zip_file(root : String | Nil = nil, &) : Nil
#
Yields a temporary file with the compressed contents of the folder.
NOTE the temporary file will be deleted after the block returns.