class GPhoto2::CameraFolder
- GPhoto2::CameraFolder
- Reference
- Object
Included Modules
Defined in:
gphoto2/camera_folder.crgphoto2/camera_folder/compression.cr
Constructors
Instance Method Summary
-
#/(name : String) : self
See:
#cd
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#cd(name : String) : self
Returns subfolder by name, relative to current
#path
. -
#clear(files : Bool = true, folders : Bool = false) : Nil
Deletes all files and/or sub-folders.
-
#delete : Nil
Deletes this folder (along with all files and subfolders) from the camera.
-
#files : Array(CameraFile)
Lists files.
-
#folders : Array(self)
Lists sub-folders.
-
#name : String
Returns folder name.
-
#open(name : String) : CameraFile
Returns file by name, relative to current
#path
. -
#parent : self
Returns parent folder or
self
. -
#parent? : self | Nil
Returns parent folder or
nil
. -
#path : Path
Returns folder path.
- #root?
-
#to_s
Returns folder
#path
as string.
Instance methods inherited from module GPhoto2::CameraFolder::Compression
to_zip_file(io : IO, root : String | Nil = nil) : Nilto_zip_file(root : String | Nil = nil) : File
to_zip_file(root : String | Nil = nil, &) : Nil to_zip_file
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true
if this reference is the same as other. Invokes same?
.
Deletes all files and/or sub-folders.