ImageFolder.index¶
- ImageFolder.index(value, start=None, end=None)¶
Provide an index method like a sequence.
- Parameters:
value (str, regexp, or
Stoner.Core.metadataObject
) – The thing to search for.- Keyword Arguments:
start,end (int) – Limit the index search to a sub-range as per Python 3.5+ list.index
- Returns:
(int) – The index of the first matching metadataObject instances.
Notes
If name is a string, then matching is based on either exact matches of the name, or if it includes a * or ? then the basis of a globbing match. name may also be a regular expressiuon, in which case matches are made on the basis of the match with the name of the metadataObject. Finally, if name is a metadataObject, then it matches for an equyality test.