class

GPhoto2::CameraFolder

Inherits GPhoto2::CameraFolder::Compression / Reference / Object

Constructors

new(camera : GPhoto2::Camera, path : Path | String = "/")
Source

Instance methods

/(name : String) : CameraFolder

See: #cd

Source
==(other : self)

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

Source
cd(name : String) : CameraFolder

Returns subfolder by name, relative to current #path.

Source
clear(files : Bool = true, folders : Bool = false) : Nil

Deletes all files and/or sub-folders.

Source
delete

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

Source
files

Lists files.

Source
folders

Lists sub-folders.

Source
mkdir(name : String) : CameraFolder

Creates a new folder and returns it

Source
name

Returns folder name.

Source
open(name : String) : CameraFile

Returns file by name, relative to current #path.

Source
parent

Returns parent folder or self.

Source
parent?

Returns parent folder or nil.

Source
path

Returns folder path.

Source
put(name : String, data : Bytes, type : CameraFile::Type = :normal, *, mime_type : String | Nil = nil, mtime : Time | Nil = nil) : CameraFile

Uploads a new file and returns it

Source
root?

Returns true if folder #path is /.

Source
to_s

Returns folder #path as string.

Source

Nested types