maxon.IoBrowseInterface¶
Description¶
IoBrowseIterator
interface for a given maxon.Url
.IoBrowseIterator
needs to be implemented for each protocol that support kind of directories
(e.g. “file”, “zip”).Methods Signature¶
Returns corresponding |
|
Returns the current |
|
Returns some extra data. |
|
|
Browses to the next object in the list. |
|
Returns the size of the current file. |
|
Checks if there is any entry left |
|
Private |
Returns the flags ( |
|
Returns the flags ( |
|
|
Restart browsing of the directory. |
Methods Definition¶
-
IoBrowseInterface.
GetBasePath
()¶ Returns corresponding
maxon.Url
.- Returns
Name of the connection.
- Return type
-
IoBrowseInterface.
GetExtraData
()¶ Returns some extra data.
Note
maxon.URLSCHEME_VOLUME
returns the human readable drive name.- Returns
The return value depends on the handler what it returns.
- Return type
str
-
IoBrowseInterface.
GetNext
()¶ Browses to the next object in the list. You need to call GetNext() before you get the first object.
-
IoBrowseInterface.
GetSize
()¶ Returns the size of the current file.
- Returns
Size in bytes. -1 means unknown size.
- Return type
int
-
IoBrowseInterface.
HasEntry
()¶ Checks if there is any entry left
- Returns
True if the iterator still get content to iterate.
- Return type
bool
-
IoBrowseInterface.
Init
(connection, flags)¶ Private
- Parameters
connection (
maxon.IoConnectionRef
) –maxon.IoConnectionRef
Connected to thismaxon.IoBrowseRef
.flags (
maxon.GETBROWSEITERATORFLAGS
) – Defines how the iterator should behave.
-
IoBrowseInterface.
IoGetAttributes
()¶ Returns the flags (
maxon.IOATTRIBUTES
) of the children.- Returns
The children flags.
- Return type
maxon.IOATTRIBUTES
-
IoBrowseInterface.
IoGetFlags
()¶ Returns the flags (
maxon.IOBROWSEFLAGS
) of the children.- Returns
The children flags.
- Return type
maxon.IOBROWSEFLAGS
-
IoBrowseInterface.
Reset
()¶ Restart browsing of the directory.