DataFolder.count

DataFolder.count(value)

Provide a count method like a sequence.

Parameters:

value (str, regexp, or Stoner.Core.metadataObject) – The thing to count matches for.

Returns:

(int) – The number of 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.