Platforms to show: All Mac Windows Linux Cross-Platform

Back to EdsDirectoryItemMBS class.

EdsDirectoryItemMBS.Child(index as UInt32) as EdsDirectoryItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Gets an indexed child object of the designated object.

Index is 0 based and range from 0 to ChildCount-1.
Lasterror is set.

EdsDirectoryItemMBS.DeleteDirectoryItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Deletes a camera folder or file.

If folders with subdirectories are designated, all files are deleted except protected files.

Don't use the object after you deleted it.
Lasterror is set.

Some examples using this method:

EdsDirectoryItemMBS.DirectoryItemInfo as EdsDirectoryItemInfoMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Gets information about the directory or file objects on the memory card (volume) in a remote camera.

Lasterror is set.
Returns nil on any error.

Some examples using this method:

EdsDirectoryItemMBS.Download(ReadSize as UInt64, stream as EdsStreamMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Downloads a file on a remote camera (in the camera memory or on a memory card) to the host computer.

The downloaded file is sent directly to a file stream created in advance.
When dividing the file being retrieved, call this API repeatedly. Also in this case, make the data block size a multiple of 512 (bytes), excluding the final block.

ReadSize: Designate the size in bytes to download.
stream: Specifies the destination stream.

Lasterror is set.

EdsDirectoryItemMBS.DownloadCancel

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Must be executed when downloading of a directory item is canceled.

Calling this API makes the camera cancel file transmission. It also releases resources.
This operation need not be executed when using DownloadThumbnail.
Lasterror is set.
In applications that take locally released images on the camera and load them on host computer, if the application receives a file transfer request from the camera when the file is not needed (by means of kEdsObjectEvent_DirItemRequestTransfer or kEdsObjectEvent_DirItemRequestTransferDT), this API must be called to notify the camera that transmission has been canceled.
Normally, delete callback function registration at the moment an event is not needed.

EdsDirectoryItemMBS.DownloadComplete

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Must be called when downloading of directory items is complete.

Executing this API makes the camera recognize that file transmission is complete.
This operation need not be executed when using DownloadThumbnail.
Lasterror is set.

If transfer of a file that was divided is canceled, call DownloadCancel instead of this API to notify the camera that downloading of the directory item has been canceled.

Some examples using this method:

EdsDirectoryItemMBS.DownloadThumbnail(stream as EdsStreamMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Extracts and downloads thumbnail information from image files in a camera.

Thumbnail information in the camera's image files is downloaded to the host computer. Downloaded thumbnails are sent directly to a file stream created in advance.

stream: Designate the stream for saving extracted thumbnails.
Lasterror is set.

EdsDirectoryItemMBS.FileAttributes as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Gets attributes of files on a camera.
Example
dim d as EdsDirectoryItemMBS // your directory item
dim a as Integer = d.FileAttributes
if bitwiseAnd(a, d.kEdsFileAttribute_ReadOnly)<>0 then
msgbox "Readonly."
end if

Returns the file attributes.
As for the file attributes, OR values of the value defined by kEdsFileAttribute* constants can be retrieved. Thus, when determining the file attributes, you must check if an attribute flag is set for target attributes. Use BitwiseAnd to check for different flags.
Lasterror is set.

If you assign value, this property changes attributes of files on a camera.
(Read and Write computed property)

EdsDirectoryItemMBS.Parent as EdsDirectoryItemMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Canon EOS Digital MBS Cameras Plugin 12.1 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop only
Gets the parent object of the designated object.

Lasterror is set.

The items on this page are in the following plugins: MBS Cameras Plugin.


The biggest plugin in space...