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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Lasterror is set.
The items on this page are in the following plugins: MBS Cameras Plugin.