module GPhoto2::CameraFolder::Compression

Overview

Provides methods to compress the contents of the folder.

Direct including types

Defined in:

gphoto2/camera_folder/compression.cr

Instance Method Summary

Instance Method Detail

def to_zip_file(io : IO, root : String | Nil = nil) : Nil #

Writes the compressed contents of the folder to io.


[View source]
def to_zip_file(root : String | Nil = nil) : File #

Returns a temporary file with the compressed contents of the folder.


[View source]
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.


[View source]