AttocubeScan.index¶
- AttocubeScan.index(value, start=None, stop=None)¶
Provide an index method like a sequence.
- Parameters:
fldr (BaseFolder) – DataFolder instance when not a bound method.
value (str, regexp, or
Stoner.Core.metadataObject) – The thing to search for.
- Keyword Arguments:
- 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.