module GPhoto2::Camera::Filesystem

Direct including types

Defined in:

gphoto2/camera/filesystem.cr

Instance Method Summary

Instance Method Detail

def /(path) : CameraFolder #

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", ...]

[View source]
def filesystem(path : String = "/") : CameraFolder #

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", ...]

[View source]
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.


[View source]