class GPhoto2::CameraFolder

Included Modules

Defined in:

gphoto2/camera_folder.cr
gphoto2/camera_folder/compression.cr

Constructors

Instance Method Summary

Instance methods inherited from module GPhoto2::CameraFolder::Compression

to_zip_file(io : IO, root : String | Nil = nil) : Nil
to_zip_file(root : String | Nil = nil) : File
to_zip_file(root : String | Nil = nil, &) : Nil
to_zip_file

Constructor Detail

def self.new(camera : GPhoto2::Camera, path : Path | String = "/") #

[View source]

Instance Method Detail

def /(name : String) : self #

See: #cd


[View source]
def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def cd(name : String) : self #

Returns subfolder by name, relative to current #path.


[View source]
def clear(files : Bool = true, folders : Bool = false) : Nil #

Deletes all files and/or sub-folders.


[View source]
def delete : Nil #

Deletes this folder (along with all files and subfolders) from the camera.


[View source]
def files : Array(CameraFile) #

Lists files.


[View source]
def folders : Array(self) #

Lists sub-folders.


[View source]
def name : String #

Returns folder name.


[View source]
def open(name : String) : CameraFile #

Returns file by name, relative to current #path.


[View source]
def parent : self #

Returns parent folder or self.


[View source]
def parent? : self | Nil #

Returns parent folder or nil.


[View source]
def path : Path #

Returns folder path.


[View source]
def root? #

Returns true if folder #path is #/.


[View source]
def to_s #

Returns folder #path as string.


[View source]