module GPhoto2::Camera::Filesystem
Direct including types
Defined in:
gphoto2/camera/filesystem.crInstance Method Summary
-
#/(path) : CameraFolder
ditto
-
#filesystem(path : String = "/") : CameraFolder
Returns
CameraFolder
instance of the given path. -
#filesystem_reset : Nil
Clear the filesystem.
Instance Method Detail
Returns CameraFolder
instance of the given path.
# Get a list of filenames in a path.
folder = camera/"store_00010001/DCIM/100D5100"
folder.files.map(&.name) # => ["DSC_0001.JPG", "DSC_0002.JPG", ...]
def filesystem_reset : Nil
#
Clear the filesystem.
Resets the filesystem. All cached information including the folder tree will get lost and will be queried again on demand.