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) : CameraFolder
See:
#cd
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#cd(name : String) : CameraFolder
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(CameraFolder)
Lists sub-folders.
-
#mkdir(name : String) : CameraFolder
Creates a new folder and returns it
-
#name : String
Returns folder name.
-
#open(name : String) : CameraFile
Returns file by name, relative to current
#path
. -
#parent : CameraFolder
Returns parent folder or
self
. -
#parent? : CameraFolder | Nil
Returns parent folder or
nil
. -
#path : Path
Returns folder path.
-
#put(name : String, data : Bytes, type : CameraFile::Type = :normal) : CameraFile
Uploads a new file and returns it
- #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.
Uploads a new file and returns it